Examples/modpython_dbg.py

Sat, 12 Apr 2014 22:39:33 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sat, 12 Apr 2014 22:39:33 +0200
branch
Py2 comp.
changeset 3505
84e7cee47d10
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Start the background client always as external process.

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