Skip to content

Instantly share code, notes, and snippets.

@jezdez
Created July 9, 2011 11:09
Show Gist options
  • Select an option

  • Save jezdez/1073519 to your computer and use it in GitHub Desktop.

Select an option

Save jezdez/1073519 to your computer and use it in GitHub Desktop.
# ...
def custom_show_toolbar(request):
return True # Always show toolbar, for example purposes only.
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
('debug_toolbar', {
'intercept_redirects': False,
'show_toolbar_callback': custom_show_toolbar,
'extra_signals': ['myproject.signals.MySignal'],
'hide_django_sql': False,
'tag': 'div',
}),
)
## debug_toolbar could then use the debug_toolbar app instance itself to get app settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment