[mod_python] Problem with psphandler

Craig Warren craig.warren at encorp.com
Fri Mar 18 10:44:08 EST 2005


Print will just print to stdout

try
psp.write('test')


Alexander Nagel wrote:

> Hi,
> i have here an apache2 running with mod_python
> and i configured it for use with .psp-pages.
> I add
> AddHandler mod_python .psp
> PythonHandler mod_python.psp
> in httpd.conf like in section 6.2 in the manual.
> After that i tested the time example from section 4.9
> and it worked successfully.
> Now i thought: 'wow how simple'
> and i expand it with a single print statement.
> <html>
> <%
> import time
> %>
> Hello world, the time is: <%=time.strftime("%Y-%m-%d, %H:%M:%S")%>
> <%
> print "Test"
> %>
> </html>
>
> But it doesn't work.
> 'Test' isn't displayed in the browser.
> Why?
> Thanks
> Alex
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python




More information about the Mod_python mailing list