Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Fixed #14384 -- Updated mod_wsgi docs to match documented bes…

…t 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
  • Loading branch information...
commit 5170a12a880ea470875981bf7e75553bed11ac00 1 parent bbab38d
Russell Keith-Magee authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  docs/howto/deployment/modwsgi.txt
4  docs/howto/deployment/modwsgi.txt
@@ -47,7 +47,9 @@ mentioned in the second part of ``WSGIScriptAlias`` and add::
47 47
 
48 48
 If your project is not on your ``PYTHONPATH`` by default you can add::
49 49
 
50  
-    sys.path.append('/usr/local/django')
  50
+    path = '/usr/local/django'
  51
+    if path not in sys.path:
  52
+        sys.path.append(path)
51 53
 
52 54
 just above the final ``import`` line to place your project on the path. Remember to
53 55
 replace 'mysite.settings' with your correct settings file, and '/usr/local/django'

0 notes on commit 5170a12

Please sign in to comment.
Something went wrong with that request. Please try again.