Add debug_toolbar.middleware.DebugToolbarMiddleware to MIDDLEWARE classes in development.py

This commit is contained in:
beeankha
2019-05-08 14:07:00 -04:00
parent 6bc1856658
commit 97dc77ea63
2 changed files with 8 additions and 2 deletions

View File

@@ -251,7 +251,7 @@ TEMPLATES = [
}, },
] ]
MIDDLEWARE_CLASSES = ( # NOQA MIDDLEWARE = ( # NOQA
'awx.main.middleware.TimingMiddleware', 'awx.main.middleware.TimingMiddleware',
'awx.main.middleware.MigrationRanCheckMiddleware', 'awx.main.middleware.MigrationRanCheckMiddleware',
'corsheaders.middleware.CorsMiddleware', 'corsheaders.middleware.CorsMiddleware',
@@ -628,7 +628,7 @@ AWX_REBUILD_SMART_MEMBERSHIP = False
ALLOW_JINJA_IN_EXTRA_VARS = 'template' ALLOW_JINJA_IN_EXTRA_VARS = 'template'
# Enable dynamically pulling roles from a requirement.yml file # Enable dynamically pulling roles from a requirement.yml file
# when updating SCM projects # when updating SCM projects
# Note: This setting may be overridden by database settings. # Note: This setting may be overridden by database settings.
AWX_ROLES_ENABLED = True AWX_ROLES_ENABLED = True

View File

@@ -162,3 +162,9 @@ except Exception:
os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2] os.environ['SDB_NOTIFY_HOST'] = os.popen('ip route').read().split(' ')[2]
WEBSOCKET_ORIGIN_WHITELIST = ['https://localhost:8043', 'https://localhost:3000'] WEBSOCKET_ORIGIN_WHITELIST = ['https://localhost:8043', 'https://localhost:3000']
MIDDLEWARE = [
# ...
'debug_toolbar.middleware.DebugToolbarMiddleware',
# ...
]