Just wondering about something. When configuring PythonPath in
httpd.conf to get mod_python to work with Apache, is it normal to have
to specify both the directory that contains your project directory as
well as the project directory itself? I had to in order to get
everything to work. I also notice that both are specified in sys.path
when you run manage.py, but none of the documentation or mailing list
threads I came across seemed to indicate the need for this.
Specifically, I needed to write:
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "['/home/myhome', '/home/myhome/myproject'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonDebug On
</Location>
Rather than just:
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "['/home/myhome'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonDebug On
</Location>
(Note the difference in the two PythonPath entries)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---