Examples/modpython.py@3975d0659673
Examples/modpython.py
Sun, 02 Aug 2020 17:19:20 +0200
- author
- Detlev Offenbach <detlev@die-offenbachs.de>
- date
- Sun, 02 Aug 2020 17:19:20 +0200
- changeset 7658
- 3975d0659673
- parent 0
-
de9c2efb9d02
- permissions
- -rw-r--r--
LexerPython: made the list of default keywords dynamic getting them from the keyword module and introduced a separate list for MicroPython.
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