[mod_python] mptest.py test

Graham Dumpleton grahamd at dscpl.com.au
Fri Jun 24 08:59:59 EDT 2005


On 24/06/2005, at 10:46 PM, Elim Qiu wrote:

> After installed mod_python (apache 2.0.54, python
> 2.3.5,mod_python-3.1.3.win32-py2.3.exe),
> Instead "Hello World!", IE displays the whole code for the url
> http://localost/mptest.py:
> from mod_python import apache
>
> def hello(req):
>     req.write("Hello World!")
>     return apache.OKI tried other version of apache with corresponding
> mod_python, no differences.Please help. Thanks

Read through:

   http://www.dscpl.com.au/projects/vampire/articles/modpython-001.html

and follow its suggestions.

Graham



More information about the Mod_python mailing list