[BangPypers] cgi help

Noufal Ibrahim noufal at gmail.com
Wed Oct 6 12:48:05 CEST 2010

On Wed, Oct 06 2010, delegbede at dudupay.com wrote:

> Got it fixed.
> Thanks y'all.
> I defined a variable out of scope.
> I ran it on my IDE to discover it.
> rowNumber was out of scope.


Put the following line

import cgitb ;cgitb.enable() 

at the top of your file if you're using it as a CGI. Any tracebacks will
be reported as nicely formatted HTML.

Also, Python CGI is a really archaic way to go. The interpreter startup
time is quite high. If you *must* use CGI, consider another language
like Perl.


More information about the BangPypers mailing list