1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-22 04:24:15 +00:00

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.
This commit is contained in:
Hidden Z 2015-10-23 20:07:47 +00:00
parent 93fa07301c
commit 1773b69aa7

View File

@ -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'