Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #3842 - clarified PythonPath directive in modpython.txt. Thanks…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6434de96b708756f27b2c70cfedcb20efb802c4b 1 parent 43a06c9
@jacobian jacobian authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 docs/modpython.txt
12 docs/modpython.txt
@@ -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::

0 comments on commit 6434de9

Please sign in to comment.
Something went wrong with that request. Please try again.