| 8 | | mod_python, available at http://www.modpython.org/ , is similar to mod_perl: It |
|---|
| 9 | | embeds Python within Apache and loads Python code into memory when the server |
|---|
| 10 | | starts. Code stays in memory throughout the life of an Apache process, which |
|---|
| 11 | | leads to significant performance gains over other server arrangements. |
|---|
| | 8 | mod_python, available at http://www.modpython.org/ , is similar to |
|---|
| | 9 | `mod_perl`_ : It embeds Python within Apache and loads Python code into memory |
|---|
| | 10 | when the server starts. Code stays in memory throughout the life of an Apache |
|---|
| | 11 | process, which leads to significant performance gains over other server |
|---|
| | 12 | arrangements. |
|---|
| | 29 | This tells Apache: "Use mod_python for any URL at or under '/mysite/', using the |
|---|
| | 30 | Django mod_python handler." It passes the value of ``DJANGO_SETTINGS_MODULE`` |
|---|
| | 31 | so mod_python knows which settings to use. |
|---|
| | 32 | |
|---|
| | 33 | Also, if you've manually altered your ``PYTHONPATH`` to put your Django project |
|---|
| | 34 | on it, you'll need to tell mod_python:: |
|---|
| | 35 | |
|---|
| | 36 | PythonPath "['/path/to/project'] + sys.path" |
|---|
| | 37 | |
|---|
| | 38 | You can also add directives such as ``PythonAutoReload Off`` for performance. |
|---|
| | 39 | See the `mod_python documentation`_ for a full list of options. |
|---|
| | 40 | |
|---|