X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/63ab75370a66f0c255e926404fe198dfcd74b880..7cafe62a37929372ed7cdf09f8c00e3699a9b858:/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 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',