The cgitb Module

(New in 2.2) CGI wrapper. This module traps exceptions in the CGI script, and generates extended traceback messages in HTML.

import cgitb, cgi
cgitb.enable()
 

A Django site. rendered by a django application. hosted by webfaction.