Examples/modpython_dbg.py@645c12de6b0c
Examples/modpython_dbg.py
Thu, 03 Apr 2014 23:05:31 +0200
- author
- T.Rzepka <Tobias.Rzepka@gmail.com>
- date
- Thu, 03 Apr 2014 23:05:31 +0200
- branch
- Py2 comp.
- changeset 3484
- 645c12de6b0c
- parent 0
-
de9c2efb9d02
- permissions
- -rw-r--r--
Merge with default branch.
from mod_python import apache
apache.initDebugger('/Path/To/modpython_dbg.py')
def handler(req):
req.content_type = "text/plain"
req.send_http_header()
req.write("Hello World!\n")
return apache.OK