Fixed #3842 - clarified PythonPath directive in modpython.txt. Thanks, jon.i.austin@gmail.com.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2007-06-07 18:03:21 +00:00
parent 43a06c9a9a
commit 6434de96b7
1 changed files with 10 additions and 2 deletions

View File

@ -51,9 +51,17 @@ whereas ``<Location>`` points at places in the URL structure of a Web site.
``<Directory>`` would be meaningless here.
Also, if you've manually altered your ``PYTHONPATH`` to put your Django project
on it, you'll need to tell mod_python::
on it, you'll need to tell mod_python:
PythonPath "['/path/to/project'] + sys.path"
.. parsed-literal::
<Location "/mysite/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
**PythonPath "['/path/to/project'] + sys.path"**
</Location>
.. caution::