Browse files

Fixed #14384 -- Updated mod_wsgi docs to match documented best practi…

…ce. Thanks to monokrome for the report and wogan for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
freakboy3742 committed Oct 8, 2010
1 parent 08beb14 commit 98c6ff3a2bd9f3878ef78a05691af0095ef86d2f
Showing with 3 additions and 1 deletion.
  1. +3 −1 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'

0 comments on commit 98c6ff3

Please sign in to comment.