Heres what I have:
<Location "/html/projects/mysite/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "sys.path + ['C:/web/html/projects/']"
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
</Location>
With:
DocumentRoot "C:/web/"
If you dont correctly set the python path you'll get a boatload of
errors when trying access projects via dot notation. "mysite" django
project folder is inside C:/web/html/projects/, thus allowing me to
access calls such as "mysite.<appname>.<etc>". When it wasnt set up
this way (when I directly linked the mysite django project folder in
python path, instead of the parent folder) nothing worked properly (I
couldnt access mysite.<anything>).
The <Location "/mysite"> apache tag informs apache that anything in,
or beyond, the directory http://localhost/mysite/ is to run with the
enclosed settings (in our case, modpython and django). The reply
above runs under virtual hosts which is a different way of settings
things up.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---