Browse Source

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.
pull/1/head
Hidden Z 9 years ago
parent
commit
1773b69aa7
  1. 1
      pyi2phosts/settings.py

1
pyi2phosts/settings.py

@ -95,6 +95,7 @@ MIDDLEWARE_CLASSES = ( @@ -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'

Loading…
Cancel
Save