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.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/howto/deployment/modpython.txt b/docs/howto/deployment/modpython.txt
index efd5a204c9..ba55335b41 100644
--- a/docs/howto/deployment/modpython.txt
+++ b/docs/howto/deployment/modpython.txt
@@ -220,21 +220,23 @@ 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'
Another alternative is to add debugging information to the template of your page.
+.. _serving-media-files:
+
Serving media files
===================
@@ -286,6 +288,8 @@ the ``media`` subdirectory and any URL that ends with ``.jpg``, ``.gif`` or
.. _Apache: http://httpd.apache.org/
.. _Cherokee: http://www.cherokee-project.com/
+.. _serving-the-admin-files:
+
Serving the admin files
=======================