Add middleware classes dynamically from configuration and switch MIDDLEWARE_CLASSES to use a list
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user