From d3514e85f41ceca840277b5a795c7a708d2882a8 Mon Sep 17 00:00:00 2001 From: Skia Date: Thu, 23 Feb 2017 00:27:26 +0100 Subject: [PATCH] Fix settings to work with toolbar --- sith/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sith/settings.py b/sith/settings.py index 14ff7ce2..95e551d8 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -27,6 +27,7 @@ SECRET_KEY = '(4sjxvhz@m5$0a$j0_pqicnc$s!vbve)z+&++m%g%bjhlz4+g2' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False +INTERNAL_IPS = ['127.0.0.1'] ALLOWED_HOSTS = ['*'] @@ -483,6 +484,5 @@ except: print("Custom settings failed") if DEBUG: - INTERNAL_IPS = ['127.0.0.1'] INSTALLED_APPS += ("debug_toolbar",) MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES