Django debug toolbar

Django Debug Toolbar 0.8 from Idan Gazit on Vimeo.

This is just an amazingly useful application you might want to add to your django development tools.

Installation is a breeze:

$ easy_install django-debug-toolbar

Then you need to add some parameters to your, as explained here.
It’s likely that you don’t want the debug-toolbar to show on your production site as well, but only where you’re doing development. So a more portable alternative to the usual way to add the debug-toolbar parameters is the following:

# set to True if you're on the production server

# ..... other settings....

	# stuff for the debug toolbar
	INSTALLED_APPS += 	('debug_toolbar',)
	MIDDLEWARE_CLASSES += ( 'debug_toolbar.middleware.DebugToolbarMiddleware', )

The LIVESERVER variable is the only thing you’ve got to manually change when copying your code to the production server…


One Response to “Django debug toolbar”

thanks mate that’s a really handy app!

john added these pithy words on Jun 20 10 at 12:39 pm