From 54b715ba3cd5076ff229ab84ffda14fe4856a2b5 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 15 Jul 2016 12:39:24 +0200 Subject: [PATCH] fix debug toobar loading (only in debug mode) --- app/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/settings.py b/app/settings.py index 036608a9..b622b621 100644 --- a/app/settings.py +++ b/app/settings.py @@ -312,13 +312,15 @@ STATICFILES_FINDERS = ( # These will be added to ``INSTALLED_APPS``, only if available. OPTIONAL_APPS = ( - "debug_toolbar", "django_extensions", "compressor", PACKAGE_NAME_FILEBROWSER, PACKAGE_NAME_GRAPPELLI, ) +if DEBUG: + OPTIONAL_APPS += "debug_toolbar" + ################## # LOCAL SETTINGS # ################## -- 2.39.5