X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/ea7d26f5d66da1ea50c548629a4940ff397b26bb..5af5cc14f6b2ecddcad714053e048e39d52ca02d:/prawokultury/settings.d/40-middleware.conf diff --git a/prawokultury/settings.d/40-middleware.conf b/prawokultury/settings.d/40-middleware.conf index eedc50e..cde9886 100755 --- a/prawokultury/settings.d/40-middleware.conf +++ b/prawokultury/settings.d/40-middleware.conf @@ -6,6 +6,14 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', +) + +if 'django_cas' in INSTALLED_APPS: + MIDDLEWARE_CLASSES += ( + 'django_cas.middleware.CASMiddleware', + ) + +MIDDLEWARE_CLASSES += ( 'django.contrib.messages.middleware.MessageMiddleware', 'piwik.django.middleware.PiwikMiddleware', # Uncomment the next line for simple clickjacking protection: