Created
September 20, 2011 18:36
-
-
Save mazelife/1229905 to your computer and use it in GitHub Desktop.
DJDT settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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