Style: Normal Dark

22 May, 2008

DebugFooter Middleware for Django

0 Comments

Written by Jason Davies Topics: debugfooter, django, 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 Responses to “DebugFooter Middleware for Django”

Leave a Comment

Powered by Django.