summaryrefslogtreecommitdiff
path: root/docs/modpython.txt
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-10-23 12:51:22 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-10-23 12:51:22 +0000
commit5e1a54a3a8285912fed02b2121b53d13fa1061fd (patch)
tree7854834beb4dbb639a918a790e5d29d8f5bd502c /docs/modpython.txt
parent1e1230c41c428c3909b52720e381cac18942e90e (diff)
queryset-refactor: Merged from trunk up to [6595].
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6597 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/modpython.txt')
-rw-r--r--docs/modpython.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/modpython.txt b/docs/modpython.txt
index 4a8c169a51..5b20046168 100644
--- a/docs/modpython.txt
+++ b/docs/modpython.txt
@@ -87,17 +87,19 @@ lived under the ``weblog/`` directory, you would *also* need to add
**parent directories** of anything you import directly must be on the Python
path.
-.. caution::
+.. note::
- If you're 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**::
+ If you're using Windows, it is still recommended that you use forward
+ slashes in the pathnames, even though Windows normally uses backslashes
+ for its native separator. Apache knows how to convert from the forward
+ slash format to the native format, so this approach is portable and easier
+ to read (it avoids tricky problems with having to double-escape
+ backslashes).
- PythonPath "['c:\\\\path\\\\to\\\\project'] + sys.path"
+ This is valid even on a Windows system::
- Or, use raw strings::
+ PythonPath "['c:/path/to/project'] + sys.path"
- 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.