summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-19 20:20:38 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-19 20:20:38 +0000
commit12321ea962128e2c051cb996d7936288f95d1c8f (patch)
treed5ada979a942de53b01d0c52ff87c94df3d7a7ea /docs
parent3148adf91d5fc6e8d2c0939b0f8bbe3240de2df3 (diff)
Added 'Running a development server with mod_python' to docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/modpython.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/modpython.txt b/docs/modpython.txt
index 4c27692b67..0ab37cb1af 100644
--- a/docs/modpython.txt
+++ b/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
arrangements.
+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: http://perl.apache.org/
.. _mod_python documentation: http://modpython.org/live/current/doc-html/directives.html