Fix settings to work with toolbar

This commit is contained in:
Skia 2017-02-23 00:27:26 +01:00
parent a4abf50d18
commit d3514e85f4

View File

@ -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! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False DEBUG = False
INTERNAL_IPS = ['127.0.0.1']
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
@ -483,6 +484,5 @@ except:
print("Custom settings failed") print("Custom settings failed")
if DEBUG: if DEBUG:
INTERNAL_IPS = ['127.0.0.1']
INSTALLED_APPS += ("debug_toolbar",) INSTALLED_APPS += ("debug_toolbar",)
MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES