Examples/modpython.py

Sat, 31 Dec 2016 13:44:13 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 31 Dec 2016 13:44:13 +0100
branch
maintenance
changeset 5391
5e79ebb03b10
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Merged with the default branch to prepare the 17.01 release.

from mod_python import apache

def handler(req):
    req.content_type = "text/plain"
    req.send_http_header()
    req.write("Hello World!\n")

    return apache.OK

eric ide

mercurial