Kaydet (Commit) 1ccdcbf7 authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

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

mod_python.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 5787603c
......@@ -54,6 +54,19 @@ on it, you'll need to tell mod_python::
PythonPath "['/path/to/project'] + sys.path"
.. caution::
Is you are using Windows, remember that the path will contain backslashes.
This string is passed through Python's string parser twice, so you need to
escape each backslash **twice**::
PythonPath "['c:\\\\path\\\\to\\\\project'] + sys.path"
or use raw strings::
PythonPath "[r'c:\\path\\to\\project'] + sys.path"
You can also add directives such as ``PythonAutoReload Off`` for performance.
See the `mod_python documentation`_ for a full list of options.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment