Django

Code

Changeset 1451

Show
Ignore:
Timestamp:
11/27/05 07:53:35 (3 years ago)
Author:
adrian
Message:

Improved docs/modpython.txt to add note about debugging under mod_python with print statements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/modpython.txt

    r1437 r1451  
    108108revoke your Django privileges. 
    109109 
     110If you're the type of programmer who debugs using scattered ``print`` 
     111statements, note that ``print`` statements have no effect in mod_python; they 
     112don't appear in the Apache log, as one might expect. If you have the need to 
     113print debugging information in a mod_python setup, either do this:: 
     114 
     115    assert False, the_value_i_want_to_see 
     116 
     117Or add the debugging information to the template of your page. 
     118 
    110119.. _mod_python documentation: http://modpython.org/live/current/doc-html/directives.html 
    111120