I was just trying to figure out how to configure django to work in a test production environment. I'm following both the tutorial on django doc on deployment and the mod_wsgi guide to django integration. No matter what i do, all i get is page not found (404 error), before if I comment out the modification to httpd.conf, it works fine and i get the test page, so the basics are correct.
Here are the relevant modifications i made: In the folder where manage.py and settings.py reside for the site, i made a folder called apache and inside that i created a file called django.wsgi. In the file is the following:
import os
import sys
sys.path.append('/home/jason/faq')
sys.path.append('/home/jason/faq/faq')
os.environ['DJANGO_SETTINGS_MODULE'] = 'faq.settings'
import django.core.handlers.wsgi
applicaion = django.core.handlers.wsgi.WSGIHandler()
jason/faq/faq is where manage.py and settings.py reside. In httpd.conf:
WSGIScriptAlias / /home/jason/faq/faq/apache/django.wsgi
<Directory /home/jason/faq/faq/apache>
Order deny, allow
Allow from all
</Directory>
Which is copied directly from the tutorial on mod_wsgi site.
If I run python manage.py runserver, it works fine for local host. I have no idea what could be wrong, if you need more information, please tell me where to get it, i am almost a complete newbie in regards to server administration tasks.
Thank you very much for all your help!