From 1773b69aa7e799ffb5786fba365b3a98b3c39df5 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Fri, 23 Oct 2015 20:07:47 +0000 Subject: [PATCH] settings.py: add SessionAuthenticationMiddleware This fixes compatibility with django 1.8. RemovedInDjango110Warning: Session verification will become mandatory in Django 1.10. Please add 'django.contrib.auth.middleware.SessionAuthenticationMiddleware' to your MIDDLEWARE_CLASSES setting when you are ready to opt-in after reading the upgrade considerations in the 1.8 release notes. --- pyi2phosts/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyi2phosts/settings.py b/pyi2phosts/settings.py index 3e57eb7..4f1d4fd 100644 --- a/pyi2phosts/settings.py +++ b/pyi2phosts/settings.py @@ -95,6 +95,7 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + 'django.contrib.auth.middleware.SessionAuthenticationMiddleware' ) ROOT_URLCONF = 'pyi2phosts.urls'