Examples/modpython_dbg.py@2d58b9c1a981
Examples/modpython_dbg.py
Sat, 07 Sep 2019 17:35:43 +0200
- author
- Detlev Offenbach <detlev@die-offenbachs.de>
- date
- Sat, 07 Sep 2019 17:35:43 +0200
- branch
- without_py2_and_pyqt4
- changeset 7223
- 2d58b9c1a981
- parent 0
-
de9c2efb9d02
- permissions
- -rw-r--r--
Closed branch after it was merged into 'default'.
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