X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/b74a8ca3378d9c4e377fa25109a48d034a9bf959..9eaf434d4f4cb1c33e0df21bbc2af1136f1d3317:/prawokultury/settings.d/40-middleware.py diff --git a/prawokultury/settings.d/40-middleware.py b/prawokultury/settings.d/40-middleware.py index 47a889e..ffbe493 100644 --- a/prawokultury/settings.d/40-middleware.py +++ b/prawokultury/settings.d/40-middleware.py @@ -5,6 +5,8 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', + 'prawokultury.middleware.ExemptableHoneypotViewMiddleware', + 'honeypot.middleware.HoneypotResponseMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', ) @@ -15,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',