Examples/modpython_dbg.py

Wed, 19 Aug 2020 19:11:18 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 19 Aug 2020 19:11:18 +0200
changeset 7672
8d3daf382286
parent 0
de9c2efb9d02
permissions
-rw-r--r--

VirtualenvManagerDialog: change the default button to be the 'Edit...' button.

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