Strange python and cgi!

CheapSkate gua81 at XXXyahoo.com
Wed Sep 25 02:08:22 CEST 2002


Hi I made a cgi script in python and successfully compiled it.

the script is some thing like this

#! usr/lib.../python

import ...
def kickass(xxx)
...

...
print "<pre>"
kickass(xxx)
print "</pre>
...

when I go to the webpage, it stops halfway and in "view source: it only show
the code till the open "pre".
however when I output it to an html file:
python nameofscript.cgi >app.html
....
app.html works fine just as I want it to be.

What seems to be the problem here.

I think i''ve done evrything right

I've got that "Content-type" and also \n\n after that line.

Thanks in advance






More information about the Python-list mailing list