Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored March 31, 2007

Showing 1 changed file with 13 additions and 0 deletions. Show diff stats Hide diff stats

  1. 13  docs/modpython.txt
13  docs/modpython.txt
@@ -54,6 +54,19 @@ on it, you'll need to tell mod_python::
54 54
 
55 55
     PythonPath "['/path/to/project'] + sys.path"
56 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
+
  69
+
57 70
 You can also add directives such as ``PythonAutoReload Off`` for performance.
58 71
 See the `mod_python documentation`_ for a full list of options.
59 72
 

0 notes on commit 1ccdcbf

Please sign in to comment.
Something went wrong with that request. Please try again.