summaryrefslogtreecommitdiff
path: root/docs/modpython.txt
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-03-31 09:40:27 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-03-31 09:40:27 +0000
commit1ccdcbf765f146040f8cb2130b4b20fc8cd5ff90 (patch)
tree3fd2a1f82ef01c16f55d44f7c55b448ca26f0f36 /docs/modpython.txt
parent5787603c8b9753b5afa6739ee4654105eb877657 (diff)
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
Diffstat (limited to 'docs/modpython.txt')
-rw-r--r--docs/modpython.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/modpython.txt b/docs/modpython.txt
index 297763c95a..5fd916f2b8 100644
--- a/docs/modpython.txt
+++ b/docs/modpython.txt
@@ -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.