X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/63ab75370a66f0c255e926404fe198dfcd74b880..9eaf434d4f4cb1c33e0df21bbc2af1136f1d3317:/prawokultury/settings.d/40-middleware.py?ds=inline diff --git a/prawokultury/settings.d/40-middleware.py b/prawokultury/settings.d/40-middleware.py index c8a63b6..ffbe493 100644 --- a/prawokultury/settings.d/40-middleware.py +++ b/prawokultury/settings.d/40-middleware.py @@ -5,7 +5,8 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', - 'honeypot.middleware.HoneypotMiddleware', + 'prawokultury.middleware.ExemptableHoneypotViewMiddleware', + 'honeypot.middleware.HoneypotResponseMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', ) @@ -16,7 +17,6 @@ if 'django_cas' in INSTALLED_APPS: 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',