Author: russellm Date: 2010-10-08 10:45:33 -0500 (Fri, 08 Oct 2010) New Revision: 14024
Modified: django/branches/releases/1.2.X/docs/howto/deployment/modwsgi.txt Log: [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. Modified: django/branches/releases/1.2.X/docs/howto/deployment/modwsgi.txt =================================================================== --- django/branches/releases/1.2.X/docs/howto/deployment/modwsgi.txt 2010-10-08 15:45:07 UTC (rev 14023) +++ django/branches/releases/1.2.X/docs/howto/deployment/modwsgi.txt 2010-10-08 15:45:33 UTC (rev 14024) @@ -47,7 +47,9 @@ 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' -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.