summaryrefslogtreecommitdiff
path: root/docs/modpython.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-11-27 13:53:35 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-11-27 13:53:35 +0000
commita2527ebe7798345e450432776b2b912d02320f2a (patch)
treea1a89dd1d37047361d3d1b032aa25ea4e8a74900 /docs/modpython.txt
parent515ae9c1289d9bbe447e0dad196e8c35d9724804 (diff)
Improved docs/modpython.txt to add note about debugging under mod_python with print statements
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/modpython.txt')
-rw-r--r--docs/modpython.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/modpython.txt b/docs/modpython.txt
index 3444087785..baa534ae91 100644
--- a/docs/modpython.txt
+++ b/docs/modpython.txt
@@ -107,6 +107,15 @@ having to restart the server each time you make code changes. Just set
everything for each request. But don't do that on a production server, or we'll
revoke your Django privileges.
+If you're the type of programmer who debugs using scattered ``print``
+statements, note that ``print`` statements have no effect in mod_python; they
+don't appear in the Apache log, as one might expect. If you have the need to
+print debugging information in a mod_python setup, either do this::
+
+ assert False, the_value_i_want_to_see
+
+Or add the debugging information to the template of your page.
+
.. _mod_python documentation: http://modpython.org/live/current/doc-html/directives.html
Serving media files