Commit 9598bccd authored by Mathieu Courcelles's avatar Mathieu Courcelles

Changes for debug-toolbar

Adds app in base to import static
parent 3a3202cc
Pipeline #14983120 passed with stage
in 1 minute and 14 seconds
......@@ -142,7 +142,10 @@ INSTALLED_APPS = [
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar',
'defender',
'raven.contrib.django.raven_compat',
# Uncomment the next line to enable the admin:
......@@ -152,7 +155,7 @@ INSTALLED_APPS = [
# CLMSVault app
'CLMSVault.CLMSVault_app',
'defender',
]
......
......@@ -21,23 +21,17 @@ 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')
......
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