May 2010


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',)
    INTERNAL_IPS = ('',)
    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...

Cite this blog post:

Michele Pasin. Django debug toolbar. Blog post on Published on May 24, 2010.


See also: