Introducing the Django Debug Toolbar
[Posted September 23, 2008 by cook]
Rob Hudson has published
an introductory document for the Django web platform
Debug Toolbar.
"
I liked the fact that Symfony's Debug Toolbar was made up of distinct panels, each of which had their own rendering methods. I created the Django Debug Toolbar similarly with a single toolbar that contained many panels. The toolbar itself is a piece of middleware that instantiates each panel object on request, and performs processing and rendering as the response is being written back to the browser. In this way it is essentially a set of middleware classes (the panels) grouped together to display a single toolbar. Each panel subclasses a base panel class and overrides a few methods to render the toolbar."
(
Log in to post comments)