I'm pretty new to Django. I'm having trouble getting my Django
app/web-site to run under Apache2 and Mod_Python. I'm running Django
0.96. I installed Apache2 and Mod_Python and tested both, and they
seem to work properly.

In my http.conf, I have the following:

<Location "/hwsw2/">
    Python Path "['/usr/local/apache2/htdocs/hwsw2','/usr/lib/
python2.3/site-packages/django'] + sys.path"
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE hwsw2.settings
    PythonDebug On
</Location>

The file permissions appear to be correct.(apache owns the .py files
and they are executable, the .html templates are all ready-only for
the world.)

Unfortunately, I get the following error:

EnvironmentError: Could not import settings 'hwsw2.settings' (Is it on
sys.path? Does it have syntax errors?): No module named hwsw2.settings

Does anyone have any ideas on what I did to mis-configure this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to