Author: jacob
Date: 2007-06-07 13:03:21 -0500 (Thu, 07 Jun 2007)
New Revision: 5434
Modified:
django/trunk/docs/modpython.txt
Log:
Fixed #3842 - clarified PythonPath directive in modpython.txt. Thanks, [EMAIL
PROTECTED]
Modified: django/trunk/docs/modpython.txt
===================================================================
--- django/trunk/docs/modpython.txt 2007-06-07 18:01:17 UTC (rev 5433)
+++ django/trunk/docs/modpython.txt 2007-06-07 18:03:21 UTC (rev 5434)
@@ -51,10 +51,18 @@
``<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::
If you're using Windows, remember that the path will contain backslashes.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---