fredrik at pythonware.com
Fri May 26 09:54:07 CEST 2000
richard_chamberlain at ntlworld.com wrote:
> I'm having great difficulties getting Python to work via CGI.
> Is there anyway I can get the traceback on to the web page so I know what's
the easiest way is to split your CGI module in two parts; use the following
script as a wrapper, and place the program logic in a separate script ("my-
script.main()" in this case):
import cgi, StringIO, sys, traceback
print "Content-Type:", "text/html"
file = StringIO.StringIO()
> I haven't got access to error logs so I can't look at it that way.
More information about the Python-list