Skip to content
Snippets Groups Projects
Commit 5a10af3c authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

remove toolbar for test

parent ac36b9b8
No related branches found
No related tags found
No related merge requests found
Pipeline #132164 passed
...@@ -33,8 +33,6 @@ SECRET_KEY = config( ...@@ -33,8 +33,6 @@ SECRET_KEY = config(
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = config("DJANGO_DEBUG", default="False").upper() == "TRUE" DEBUG = config("DJANGO_DEBUG", default="False").upper() == "TRUE"
SHOW_TOOLBAR_CALLBACK = True
ALLOWED_HOSTS = [s.strip() for s in config("ALLOWED_HOSTS", default="*").split(",")] + [ ALLOWED_HOSTS = [s.strip() for s in config("ALLOWED_HOSTS", default="*").split(",")] + [
gethostbyname(gethostname()), gethostbyname(gethostname()),
] # for k8s probe compatibility ] # for k8s probe compatibility
...@@ -70,7 +68,6 @@ INSTALLED_APPS = [ ...@@ -70,7 +68,6 @@ INSTALLED_APPS = [
"crispy_bootstrap4", "crispy_bootstrap4",
"live_settings", "live_settings",
"formtools", "formtools",
"debug_toolbar",
# "mod_wsgi.server", # "mod_wsgi.server",
"django.contrib.sites", "django.contrib.sites",
"allauth", "allauth",
...@@ -95,10 +92,16 @@ MIDDLEWARE = [ ...@@ -95,10 +92,16 @@ MIDDLEWARE = [
"django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware", "django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware",
"debug_toolbar.middleware.DebugToolbarMiddleware",
"maintenance_mode.middleware.MaintenanceModeMiddleware", "maintenance_mode.middleware.MaintenanceModeMiddleware",
"allauth.account.middleware.AccountMiddleware", "allauth.account.middleware.AccountMiddleware",
] ]
SHOW_TOOLBAR_CALLBACK = False
if DEBUG:
INSTALLED_APPS += ["debug_toolbar"]
MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]
SHOW_TOOLBAR_CALLBACK = True
ROOT_URLCONF = "ippisite.urls" ROOT_URLCONF = "ippisite.urls"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment