Examples/modpython_dbg.py

Mon, 09 Sep 2019 19:07:48 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 09 Sep 2019 19:07:48 +0200
changeset 7228
6037ddba57aa
parent 0
de9c2efb9d02
permissions
-rw-r--r--

install-debugclients.py: reverted the Python2 related changes because the debug client still supports Python2.

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

eric ide

mercurial