Commit d2011255 authored by Mathieu Courcelles's avatar Mathieu Courcelles

Adds debug toolbar

parent 215c3cf4
Pipeline #14982255 passed with stage
in 1 minute and 30 seconds
......@@ -21,6 +21,23 @@ ADMINS = (
MANAGERS = ADMINS
print('debug:', DEBUG)
if DEBUG:
DEBUG = True
print('debug:', DEBUG)
INSTALLED_APPS += ['debug_toolbar']
MIDDLEWARE.insert(0, 'debug_toolbar.middleware.DebugToolbarMiddleware')
def toolbar_callback(request):
return True
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TOOLBAR_CALLBACK': toolbar_callback
}
print('hey')
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = get_secret('SECRET_KEY')
......@@ -86,17 +103,3 @@ DEFENDER_LOGIN_FAILURE_LIMIT = 10
DEFENDER_BEHIND_REVERSE_PROXY = True
DEFENDER_REDIS_URL = 'redis://redis:6379/0'
print('debug:', DEBUG)
if DEBUG:
INSTALLED_APPS += ['debug_toolbar']
MIDDLEWARE.insert(0, 'debug_toolbar.middleware.DebugToolbarMiddleware')
def toolbar_callback(request):
return True
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TOOLBAR_CALLBACK': toolbar_callback
}
print('hey')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment