Commit a046ec89 authored by Christos Stavrakakis's avatar Christos Stavrakakis

Move middlewares from snf-common to snf-webproject

parent 3b033bab
......@@ -70,8 +70,8 @@ context_processors = [
middlware_classes = [
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'synnefo.lib.middleware.LoggingConfigMiddleware',
'synnefo.lib.middleware.SecureMiddleware',
'synnefo.webproject.middleware.LoggingConfigMiddleware',
'synnefo.webproject.middleware.SecureMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# 'debug_toolbar.middleware.DebugToolbarMiddleware',
......
......@@ -6,6 +6,6 @@ synnefo_installed_apps = ['pithos.api']
# apply required middleware
synnefo_middlewares = [
'synnefo.lib.middleware.LoggingConfigMiddleware',
'synnefo.lib.middleware.SecureMiddleware'
'synnefo.webproject.middleware.LoggingConfigMiddleware',
'synnefo.webproject.middleware.SecureMiddleware'
]
......@@ -65,8 +65,8 @@ MIDDLEWARE_CLASSES = (
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
#'django.contrib.messages.middleware.MessageMiddleware',
'synnefo.lib.middleware.LoggingConfigMiddleware',
'synnefo.lib.middleware.CleanseSettingsMiddleware'
'synnefo.webproject.middleware.LoggingConfigMiddleware',
'synnefo.webproject.middleware.CleanseSettingsMiddleware'
)
MIDDLEWARE_CLASSES = extend_list_from_entry_point(MIDDLEWARE_CLASSES, \
'synnefo', 'web_middleware')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment