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
This commit is contained in:
Russell Keith-Magee 2010-10-08 15:36:48 +00:00
parent 08beb148c8
commit 98c6ff3a2b
1 changed files with 3 additions and 1 deletions

View File

@ -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'