firebug can show the content of any request/response, including AJAX
ones. it also renders any HTML content, like those generated by the
Django error pages
You'll have to enable that yourself with some middleware, strangely.
In your app/site, add a "middleware.py":
logger = logging.getLogger(__name__)
"""Middleware that logs exceptions.
To enable it, add
your setting.py's MIDDLEWARE_CLASSES.
def process_exception(self, request, exception):
And do the MIDDLEWARE_CLASSES thingy in the docstring.
People have already mentioned firebug's ability to show the contents
of the error response. Note that you can also define an
exception middleware that will catch exceptions raised by your views
(but not all exceptions raised in the course of request-response
processing*) occuring during request processing and then you can e.g.
format the error into a json response, say, for less pain on the client
(i) the obvious - an apache level error, not all that much django can do
(ii) Some exceptions, mostly those raised by the resolver, escape the
exception middleware, just owing to the structure of the code, see
BaseHandler.get_response() . Subclassing the Handler seems to be the
least worst way to deal with that right now.