[mod_python] Some questions

Gregory (Grisha) Trubetskoy grisha at modpython.org
Thu Nov 8 12:49:50 EST 2001


if you're using the publisher, then

> def _blah(req):
>
>     req.content_type = "text/html"
>     req.send_http_header()
>     req.write("Uh oh, you shouldn't be seeing this...")
>
>     return apache
>

should probably be

def _blah(req):

     return "Uh oh, you shouldn't be seeing this..."

Though I'm kind of surprised you were getting anything at all, you were
supposed to get "not found" or "forbidden". Make sure your config says

PythonHandler mod_python.publisher



Grisha




More information about the Mod_python mailing list