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

:
:
  • Recent Comments

    Joel

    Wow, this is so much fun!!

    Jason

    I think all the scenes in the video actually come preloaded with the program.

    It was a lot of fun to play with, and certainly something I'd recommend for children to use when learning about physics, or just for general entertainment on a rainy day!

    grinnyguy

    That looks like a wonderful program. I will definitely download it sometime and have a go! Were the ones you made as good as the ones in the video?

    Eric

    Thank you so much. Got same problem with OpenSuse 10.3, Firefox 2.0.0.12 & JDK 1.6 and now it works fine !

    James Low

    It may not be Christmas, but is it april fools: http://www.isitaprilfools.com

    Faster than you

    you are too slow.

    Jasper Winfield

    Write something once a month dude!

    Joel

    How about only taking macrophotographz?

    (well done for updating your blog!)

    JW

    People don't actually like choices that much. What people REALLY want is a lot of the same thing to choose from, thus creating an illusion of free will, while doesn't really require much of selective process, and in fact what they end up choosing does not matter at all. For example pop music, high street fashion, and the all the major political parties.

    rakie_love

    oh, i am very slightly jealous.

  • Archives

  • Categories

  • Meta

Powered by Django.