Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…nfiguring

mod_python.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1ccdcbf765f146040f8cb2130b4b20fc8cd5ff90 1 parent 5787603
@malcolmt malcolmt authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 docs/modpython.txt
View
13 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.
Please sign in to comment.
Something went wrong with that request. Please try again.