The django.contrib.exceptionformatter package provides an alternative traceback formatter for Django. The formatter implements the ITracebackSupplement interface of Zope3. Highly recommended for users of Django Page Templates.
ITracebackSupplement
See the readme for more.
Note: As the exception formatter changes the way Django handles internal server errors, it is recommended to only add it to the installed apps list in development mode (DEBUG=True in settings.py). Thanks to Remco Wendt for this hint.