Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added 'Running a development server with mod_python' to docs/modpytho…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 12321ea962128e2c051cb996d7936288f95d1c8f 1 parent 3148adf
@adrianholovaty adrianholovaty authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 docs/modpython.txt
12 docs/modpython.txt
@@ -11,6 +11,9 @@ when the server starts. Code stays in memory throughout the life of an Apache
process, which leads to significant performance gains over other server
+Basic configuration
To configure Django with mod_python, first make sure you have Apache installed,
with the mod_python module activated.
@@ -60,5 +63,14 @@ Here's a template for an admin configuration::
The only thing different here is the ``DJANGO_SETTINGS_MODULE``.
+Running a development server with mod_python
+If you use mod_python for your development server, you can avoid the hassle of
+having to restart the server each time you make code changes. Just set
+``MaxRequestsPerChild 1`` in your ``httpd.conf`` file to force Apache to reload
+everything for each request. But don't do that on a production server, or we'll
+revoke your Django privileges.
.. _mod_perl:
.. _mod_python documentation:

0 comments on commit 12321ea

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