New-style middlewares

This commit is contained in:
Eliot Berriot 2017-12-15 23:48:45 +01:00
parent 0559b1b1ab
commit 7c0b4b9a8f
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 10 additions and 5 deletions

View file

@ -75,7 +75,7 @@ INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
# MIDDLEWARE CONFIGURATION
# ------------------------------------------------------------------------------
MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
# Make sure djangosecure.middleware.SecurityMiddleware is listed first
'django.contrib.sessions.middleware.SessionMiddleware',
'funkwhale_api.users.middleware.AnonymousSessionMiddleware',