From: Guillaume Pellerin Date: Fri, 15 Jul 2016 10:39:24 +0000 (+0200) Subject: fix debug toobar loading (only in debug mode) X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=54b715ba3cd5076ff229ab84ffda14fe4856a2b5;p=mezzo.git fix debug toobar loading (only in debug mode) --- 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 # ##################