Skip to content

Instantly share code, notes, and snippets.

@mazelife
Created September 20, 2011 18:36
Show Gist options
  • Save mazelife/1229905 to your computer and use it in GitHub Desktop.
Save mazelife/1229905 to your computer and use it in GitHub Desktop.
DJDT settings
def _djdt_check(request):
# Don't show the DJDTB in the admin.
if request.path.startswith("/admin/"):
return False
return True
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': False,
'SHOW_TOOLBAR_CALLBACK': _djdt_check
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment