Upgrade code to support Django 1.10

This commit is contained in:
Claude Paroz 2016-09-08 15:46:58 +02:00
parent 90bcdbbc06
commit f8b1afcf72
6 changed files with 13 additions and 9 deletions

View file

@ -59,7 +59,7 @@ STATIC_URL = '/static/'
# Set it in local_settings.py.
SECRET_KEY = ''
MIDDLEWARE_CLASSES = (
MIDDLEWARE = [
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
@ -68,7 +68,7 @@ MIDDLEWARE_CLASSES = (
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
'common.middleware.LoginRequiredMiddleware',
)
]
ROOT_URLCONF = 'common.urls'