mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
[1.2.X] Fixed #14277 - Clarify path names in modwsgi docs; thanks neitpiet for the report, elbarto for the patch.
Backport of r15098 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6510bb76c6
commit
6ace3a9313
@ -47,12 +47,12 @@ mentioned in the second part of ``WSGIScriptAlias`` and add::
|
|||||||
|
|
||||||
If your project is not on your ``PYTHONPATH`` by default you can add::
|
If your project is not on your ``PYTHONPATH`` by default you can add::
|
||||||
|
|
||||||
path = '/usr/local/django'
|
path = '/path/to/mysite'
|
||||||
if path not in sys.path:
|
if path not in sys.path:
|
||||||
sys.path.append(path)
|
sys.path.append(path)
|
||||||
|
|
||||||
just above the final ``import`` line to place your project on the path. Remember to
|
just below the ``import sys`` line to place your project on the path. Remember to
|
||||||
replace 'mysite.settings' with your correct settings file, and '/usr/local/django'
|
replace 'mysite.settings' with your correct settings file, and '/path/to/mysite'
|
||||||
with your own project's location.
|
with your own project's location.
|
||||||
|
|
||||||
Serving media files
|
Serving media files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user