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 settings.py, 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
LIVESERVER = False
# ..... other settings....
if not LIVESERVER:
# stuff for the debug toolbar
INSTALLED_APPS += ('debug_toolbar',)
INTERNAL_IPS = ('127.0.0.1',)
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:
Comments via Github:
2011
2010