Django

Code

Changeset 4877

Show
Ignore:
Timestamp:
03/31/07 04:40:27 (1 year ago)
Author:
mtredinnick
Message:

Fixed #3801 -- Added note about double-escaping Windows paths when configuring
mod_python.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/modpython.txt

    r4864 r4877  
    5454 
    5555    PythonPath "['/path/to/project'] + sys.path" 
     56 
     57.. caution:: 
     58 
     59    Is you are using Windows, remember that the path will contain backslashes. 
     60    This string is passed through Python's string parser twice, so you need to 
     61    escape each backslash **twice**:: 
     62 
     63        PythonPath "['c:\\\\path\\\\to\\\\project'] + sys.path" 
     64 
     65    or use raw strings:: 
     66 
     67        PythonPath "[r'c:\\path\\to\\project'] + sys.path" 
     68 
    5669 
    5770You can also add directives such as ``PythonAutoReload Off`` for performance.