import gadfly causes 500 Server Error -- anyone know how to fix?

Joonas Paalasmaa joonas at olen.to
Sun Mar 10 17:34:39 EST 2002


Jerry Gitomer wrote:
> 
> Hi,
> 
> I have an application I am porting from Python with Tkinter to
> Python on the Web.
> I built my first set of scripts by copying something that worked
> and then modifying
> one idea at a time.  Everything was fine until I tried to add a
> query into a gadfly database.
> 
> I discovered that adding the "import gadfly" statement results
> in:
> 
> 500 Server Error
> 
> The server encountered an internal error and could not complete
> your request.
> 
> Anyone have any ideas on why and how to fix?

Insert these lines just above the line where you import gadfly. It
causes the traceback to be printed to browser. Or if you are using
Python 2.2, you should use cgitb module.

import sys
sys.stderr = sys.stdout
print "Content-type: text/plain"
print



More information about the Python-list mailing list