wcs: use MIDDLEWARE instead of MIDDLEWARE_CLASSES (#41375)
This commit is contained in:
parent
149bfa569e
commit
dd6132dad5
|
@ -8,15 +8,15 @@ TEMPLATES[0]['OPTIONS']['context_processors'] = [
|
|||
'hobo.context_processors.theme_base',
|
||||
] + TEMPLATES[0]['OPTIONS']['context_processors']
|
||||
|
||||
if not 'MIDDLEWARE_CLASSES' in globals():
|
||||
MIDDLEWARE_CLASSES = global_settings.MIDDLEWARE_CLASSES
|
||||
if not 'MIDDLEWARE' in globals():
|
||||
MIDDLEWARE = global_settings.MIDDLEWARE
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
MIDDLEWARE = (
|
||||
'hobo.middleware.utils.StoreRequestMiddleware',
|
||||
'hobo.middleware.xforwardedfor.XForwardedForMiddleware',
|
||||
'hobo.middleware.VersionMiddleware', # /__version__
|
||||
'hobo.middleware.cors.CORSMiddleware',
|
||||
) + MIDDLEWARE_CLASSES
|
||||
) + MIDDLEWARE
|
||||
|
||||
CACHES = {
|
||||
'default': {
|
||||
|
|
Loading…
Reference in New Issue