summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-10-08 15:36:48 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-10-08 15:36:48 +0000
commit98c6ff3a2bd9f3878ef78a05691af0095ef86d2f (patch)
tree2086af1ddc893d3c00610e29899b4fd3af5478be /docs
parent08beb148c86a0e465c57f89958b8913b10191097 (diff)
Fixed #14384 -- Updated mod_wsgi docs to match documented best practice. Thanks to monokrome for the report and wogan for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14016 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/deployment/modwsgi.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/howto/deployment/modwsgi.txt b/docs/howto/deployment/modwsgi.txt
index e873006af0..0db3c10cfb 100644
--- a/docs/howto/deployment/modwsgi.txt
+++ b/docs/howto/deployment/modwsgi.txt
@@ -47,7 +47,9 @@ mentioned in the second part of ``WSGIScriptAlias`` and add::
If your project is not on your ``PYTHONPATH`` by default you can add::
- sys.path.append('/usr/local/django')
+ path = '/usr/local/django'
+ if path not in sys.path:
+ sys.path.append(path)
just above the final ``import`` line to place your project on the path. Remember to
replace 'mysite.settings' with your correct settings file, and '/usr/local/django'