Ticket #4296: django-modpython.diff
File django-modpython.diff, 1.1 KB (added by , 18 years ago) |
---|
-
docs/modpython.txt
53 53 Also, if you've manually altered your ``PYTHONPATH`` to put your Django project 54 54 on it, you'll need to tell mod_python:: 55 55 56 PythonPath "['/ path/to/project'] + sys.path"56 PythonPath "['/your/python/path'] + sys.path" 57 57 58 You should note that this is the path to the parent dir of where your project live. 59 58 60 .. caution:: 59 61 60 62 If you're using Windows, remember that the path will contain backslashes. 61 63 This string is passed through Python's string parser twice, so you need to 62 64 escape each backslash **twice**:: 63 65 64 PythonPath "['c:\\\\ path\\\\to\\\\project'] + sys.path"66 PythonPath "['c:\\\\your\\\\python\\\\path'] + sys.path" 65 67 66 68 Or, use raw strings:: 67 69 68 PythonPath "[r'c:\\ path\\to\\project'] + sys.path"70 PythonPath "[r'c:\\your\\python\\path'] + sys.path" 69 71 70 72 You can also add directives such as ``PythonAutoReload Off`` for performance. 71 73 See the `mod_python documentation`_ for a full list of options.