Settings: Update MIDDLEWARE_CLASSES to MIDDLEWARE
Update mentions of MIDDLEWARE_CLASSES to MIDDLEWARE in the development and testing settings. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -11,6 +11,6 @@ if 'debug_toolbar' not in INSTALLED_APPS:
|
||||
'debug_toolbar',
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
MIDDLEWARE = (
|
||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
) + MIDDLEWARE_CLASSES
|
||||
) + MIDDLEWARE
|
||||
|
||||
@@ -12,8 +12,8 @@ COMMON_PRODUCTION_ERROR_LOG_PATH = '/tmp/mayan-errors.log'
|
||||
|
||||
# Remove whitenoise from middlewares. Causes out of memory errors during test
|
||||
# suit
|
||||
MIDDLEWARE_CLASSES = [
|
||||
cls for cls in MIDDLEWARE_CLASSES if cls != 'whitenoise.middleware.WhiteNoiseMiddleware'
|
||||
MIDDLEWARE = [
|
||||
cls for cls in MIDDLEWARE if cls != 'whitenoise.middleware.WhiteNoiseMiddleware'
|
||||
]
|
||||
|
||||
# User a simpler password hasher
|
||||
@@ -38,8 +38,8 @@ CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
|
||||
BROKER_BACKEND = 'memory'
|
||||
|
||||
# Remove middlewares not used for tests
|
||||
MIDDLEWARE_CLASSES = [
|
||||
cls for cls in MIDDLEWARE_CLASSES if cls not in [
|
||||
MIDDLEWARE = [
|
||||
cls for cls in MIDDLEWARE if cls not in [
|
||||
'common.middleware.error_logging.ErrorLoggingMiddleware',
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'corsheaders.middleware.CorsMiddleware',
|
||||
|
||||
Reference in New Issue
Block a user