From 621385ea1c347a62657ace5dd717b0a248b084c0 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 3 Sep 2018 16:07:12 +0200
Subject: [PATCH] 'debug_toolbar' is configured in local settings

---
 smash/smash/local_settings.py.template | 6 +++++-
 smash/smash/settings.py                | 7 ++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/smash/smash/local_settings.py.template b/smash/smash/local_settings.py.template
index 652a544a..37a160af 100644
--- a/smash/smash/local_settings.py.template
+++ b/smash/smash/local_settings.py.template
@@ -2,7 +2,11 @@
 SECRET_KEY = 'Paste long random string here'  # Insert long random string
 
 # SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
+DEBUG = False
+
+DEV_APPS = [
+    # 'debug_toolbar',
+]
 
 WSGI_APPLICATION = 'smash.wsgi.application'
 
diff --git a/smash/smash/settings.py b/smash/smash/settings.py
index c11fe16a..1b0702cf 100644
--- a/smash/smash/settings.py
+++ b/smash/smash/settings.py
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/1.10/ref/settings/
 """
 
 import os
+from local_settings import DEV_APPS
 
 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -36,11 +37,11 @@ INSTALLED_APPS = [
     'django_otp.plugins.otp_totp',
     'two_factor',
     'web',
-    'stronghold',
-
-    'debug_toolbar'
+    'stronghold'
 ]
 
+INSTALLED_APPS += DEV_APPS
+
 MIDDLEWARE = [
     'debug_toolbar.middleware.DebugToolbarMiddleware',
     'django.middleware.security.SecurityMiddleware',
-- 
GitLab