summaryrefslogtreecommitdiff
path: root/docs/howto/deployment/modpython.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/howto/deployment/modpython.txt')
-rw-r--r--docs/howto/deployment/modpython.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/howto/deployment/modpython.txt b/docs/howto/deployment/modpython.txt
index 5bb09d8c24..d8c9c4ca3f 100644
--- a/docs/howto/deployment/modpython.txt
+++ b/docs/howto/deployment/modpython.txt
@@ -4,10 +4,11 @@ How to use Django with Apache and mod_python
.. warning::
- Support for mod_python will be deprecated in a future release of Django. If
- you are configuring a new deployment, you are strongly encouraged to
- consider using :doc:`mod_wsgi </howto/deployment/modwsgi>` or any of the
- other :doc:`supported backends </howto/deployment/index>`.
+ Support for mod_python has been deprecated, and will be removed in
+ Django 1.5. If you are configuring a new deployment, you are
+ strongly encouraged to consider using :doc:`mod_wsgi
+ </howto/deployment/modwsgi>` or any of the other :doc:`supported
+ backends </howto/deployment/index>`.
.. highlight:: apache
@@ -218,15 +219,15 @@ log and can even `cause response errors`_.
.. _cause response errors: http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output.html
-If you have the need to print debugging information in a mod_python setup, you
+If you have the need to print debugging information in a mod_python setup, you
have a few options. You can print to ``stderr`` explicitly, like so::
-
+
print >> sys.stderr, 'debug text'
sys.stderr.flush()
-
+
(note that ``stderr`` is buffered, so calling ``flush`` is necessary if you wish
debugging information to be displayed promptly.)
-
+
A more compact approach is to use an assertion::
assert False, 'debug text'