Django debug toolbar FTW.
If you do any development with Django, then this is a must have.
Not only is it awesomely useful, but it also has a great abbreviation that could be a throwback to WWF days of old. Any child of the mid-to-late 80’s remember the DDT?! That’s kind of what this is does, help you drive problems with your app head first into the mat - nice.
Google code page here: DDT on google code
Github here: DDT on github
Like any other python package, this one is simple to install.
Get a tarball, unpack it, cd into it..
# python setup.py build # sudo python setup.py install
Now, use it in your django app by adding something similar to your settings.py:
# This should be appended to MIDDLEWARE_CLASSES:
'debug_toolbar.middleware.DebugToolbarMiddleware',
# This should be appended to INSTALLED_APPS:
'debug_toolbar',
# Set this to localhost if developing locally
# If not developing locally, add your remote IP..
INTERNAL_IPS = ('127.0.0.1')
# Various apps available
DEBUG_TOOLBAR_PANELS = (
'debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.headers.HeaderDebugPanel',
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.cache.CacheDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
)See here: README for more detail on usage/install.
Get it, use it, love it.
EDIT: Added some quick bits on how to install/use
