Django

Code

Ticket #4296: django-modpython.diff

File django-modpython.diff, 1.1 kB (added by knutin@urtete.com, 2 years ago)

Patch to docs/modpython.txt

  • docs/modpython.txt

    old new  
    5353Also, if you've manually altered your ``PYTHONPATH`` to put your Django project 
    5454on it, you'll need to tell mod_python:: 
    5555 
    56     PythonPath "['/path/to/project'] + sys.path" 
     56    PythonPath "['/your/python/path'] + sys.path" 
    5757 
     58You should note that this is the path to the parent dir of where your project live. 
     59 
    5860.. caution:: 
    5961 
    6062    If you're using Windows, remember that the path will contain backslashes. 
    6163    This string is passed through Python's string parser twice, so you need to 
    6264    escape each backslash **twice**:: 
    6365 
    64         PythonPath "['c:\\\\path\\\\to\\\\project'] + sys.path" 
     66        PythonPath "['c:\\\\your\\\\python\\\\path'] + sys.path" 
    6567 
    6668    Or, use raw strings:: 
    6769 
    68         PythonPath "[r'c:\\path\\to\\project'] + sys.path" 
     70        PythonPath "[r'c:\\your\\python\\path'] + sys.path" 
    6971 
    7072You can also add directives such as ``PythonAutoReload Off`` for performance. 
    7173See the `mod_python documentation`_ for a full list of options.