Examples/modpython_dbg.py

Sun, 05 Jul 2020 16:19:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 05 Jul 2020 16:19:39 +0200
changeset 7647
94c5e1bbf09f
parent 0
de9c2efb9d02
permissions
-rw-r--r--

.desktop: modified the .desktop files for use with pip to include @BINDIR@ again.

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