I cannot get the python cgitb module to display the stack trace in the browser. I have no problems in the shell environment. I am running Centos 6 with python 2.6.
Here is an example of simple code that I use:
import cgitb; cgitb.enable() print "Content-type: text/html" print print 1/0
I get an internal server error instead of a printed verbose report. I tried different types of errors, different browsers, etc.
When I have no error, of course, python works fine. It will print an error in a thin shell. The point of cgitb is to print an error instead of returning "Internal Server Error" in the browser for most errors. Basically, I'm just trying to get cgitb to work in a browser environment.
Any suggestions?
python internal-server-error
Jonathan
source share