Add middleware classes dynamically from configuration and switch MIDDLEWARE_CLASSES to use a list

This commit is contained in:
Jesse Shapiro
2017-09-26 16:16:00 -04:00
parent db6570b754
commit c4767e253b
14 changed files with 41 additions and 22 deletions

View File

@@ -58,10 +58,10 @@ DJFS = {
################################ DEBUG TOOLBAR ################################
INSTALLED_APPS += ('debug_toolbar', 'debug_toolbar_mongo')
MIDDLEWARE_CLASSES += (
MIDDLEWARE_CLASSES.extend([
'django_comment_client.utils.QueryCountDebugMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
])
INTERNAL_IPS = ('127.0.0.1',)
DEBUG_TOOLBAR_PANELS = (