DebugFooter Middleware for Django

Posted in django, debugfooter, middleware.

DebugFooter is a handy little piece of middleware that Simon mentioned during his talk on Monday.

Adds a hidden footer to the bottom of every text/html page containing a list of SQL queries executed and templates that were loaded (including their full filesystem path to help debug complex template loading scenarios).

To use, drop in to a file called 'debug_middleware.py' on your Python path and add 'debug_middleware.DebugFooter' to your MIDDLEWARE_CLASSES setting.

0 comments

Woohoo, CouchDB got approved to be an Apache TLP! about a day ago

Follow Jason on Twitter

Style: Normal Dark