Examples/modpython.py

Thu, 03 Jul 2014 19:02:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 03 Jul 2014 19:02:29 +0200
branch
5_4_x
changeset 3661
9f5d0a07e69b
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Fixed a little issue in the error message handler.

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