Examples/modpython_dbg.py

Thu, 24 Oct 2019 19:30:01 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 24 Oct 2019 19:30:01 +0200
changeset 7309
5a434813eef3
parent 0
de9c2efb9d02
permissions
-rw-r--r--

PreviewerHTML, ExporterHTML:
- enhanced the Markdown previewer to support Mermaid via the md_mermaid extension, if it is available and has been enabled.

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