<Directory> tag below, and you will need to make sure the
AllowOverride directive applicable to this directory has at least
FileInfo specified. (The default is None, which will not work.)
<Directory /some/directory/htdocs/test> AddHandler python-program .py PythonHandler mptest PythonDebug On </Directory>
(Substitute /some/directory above for something applicable to your system, usually your Apache ServerRoot)
from mod_python import apache
def handler(req):
req.send_http_header()
req.write("Hello World!")
return apache.OK
"Hello World!". If you didn't - refer to the
troubleshooting section next.