diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-08 15:45:33 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-08 15:45:33 +0000 |
| commit | 5170a12a880ea470875981bf7e75553bed11ac00 (patch) | |
| tree | 1293a4d1ea895c2dfcd27a8d129c2154ac19c7f6 /docs | |
| parent | bbab38dc503a7d4c3e5c41d73e42fa9d6081e67b (diff) | |
[1.2.X] Fixed #14384 -- Updated mod_wsgi docs to match documented best practice. Thanks to monokrome for the report and wogan for the patch.
Backport of r14016 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14024 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/deployment/modwsgi.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/howto/deployment/modwsgi.txt b/docs/howto/deployment/modwsgi.txt index fc51f24f80..17ba0e3835 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' |
