[mod_python] AttributeError: handler

Gregory Trubetskoy grisha at modpython.org
Mon Jun 5 09:40:52 EST 2000


Mads - 

Everyone who reported this problem so far found later on that they had
extra blanks in their test.py because they cut and pasted from the web
page.

No, you don't need to compile your py into a pyc - Python will do that for
you.

--
  Gregory (Grisha) Trubetskoy
       grisha at modpython.org

On Mon, 5 Jun 2000, Mads Kiilerich wrote:

> Friday I got mail from Gregory Trubetskoy:
> 
> But test.py contains the following, according to the example in
> the documentation:
> 
> 
> from mod_python import apache
> 
> def handler(req):
> 	req.send_http_header()
> 	req.write("Hello World!")
> 	return apache.OK 
> 




More information about the Mod_python mailing list