normally you only need to add Django Debug Toolbar to your apps
INSTALLED_APPS = (
'debug_toolbar',
)
for troublesome installations in your settings file
DEBUG_TOOLBAR_PATCH_SETTINGS = False
MIDDLEWARE_CLASSES = (
...
'debug_toolbar.middleware.DebugToolbarMiddleware',
...
)
Note that the order of where the 'debug_toolbar.middleware.DebugToolbarMiddleware' import sits is important
then in your urls.py
if settings.DEBUG: # make sure the toolbar is above ?CKeditor and FeinCMS
import debug_toolbar
urlpatterns += patterns('',
url(r'^__debug__/', include(debug_toolbar.urls)),
)
note that the debug urls include should be down towards the bottom of your urls file, but not necessarily at the end. It should be below your apps but above some 3rd party apps.
So you might need to play around with the positioning of the import position both in MIDDLEWARE_CLASSES and in urls.py