X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/b74a8ca3378d9c4e377fa25109a48d034a9bf959..ad9181d5de95c8dd356f6e2687769c970ceff9f9:/prawokultury/settings.d/40-middleware.py?ds=sidebyside diff --git a/prawokultury/settings.d/40-middleware.py b/prawokultury/settings.d/40-middleware.py index 47a889e..b48e178 100644 --- a/prawokultury/settings.d/40-middleware.py +++ b/prawokultury/settings.d/40-middleware.py @@ -5,17 +5,18 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', + 'prawokultury.middleware.ExemptableHoneypotViewMiddleware', + 'honeypot.middleware.HoneypotResponseMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', ) if 'django_cas' in INSTALLED_APPS: MIDDLEWARE_CLASSES += ( - 'django_cas.middleware.CASMiddleware', + 'django_cas_ng.middleware.CASMiddleware', ) MIDDLEWARE_CLASSES += ( 'django.contrib.messages.middleware.MessageMiddleware', - 'piwik.django.middleware.PiwikMiddleware', # Uncomment the next line for simple clickjacking protection: # 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'pagination.middleware.PaginationMiddleware',