O'Reilly logo

Django 1.1 Testing and Debugging by Karen M. Tracey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Django Debug Toolbar

Rob Hudson's Django Debug Toolbar is a very useful general purpose debugging tool for Django applications. As with the code we developed earlier in this chapter, it lets you see the SQL queries that were needed to produce a page. However, as we will see, it also goes far beyond that, providing easy access to much more information about the SQL queries and other aspects of request processing. Furthermore, the debug toolbar has a far more advanced way of displaying the information than simply embedding it in HTML comments. The capabilities are best shown by example, so we will immediately proceed with installing the toolbar.

Installing the Django Debug Toolbar

The toolbar can be found on the Python package index site: http://pypi.python.org/pypi/django-debug-toolbar ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required