Skip to content

Instantly share code, notes, and snippets.

@jayluxferro
Created April 11, 2018 16:47
Show Gist options
  • Select an option

  • Save jayluxferro/56fc602efaa22ec263ae19fc4969a7f1 to your computer and use it in GitHub Desktop.

Select an option

Save jayluxferro/56fc602efaa22ec263ae19fc4969a7f1 to your computer and use it in GitHub Desktop.
Django 2.0_Middleware
Django 2.0
You can try this in your settings.py, MIDDLEWARE_CLASSES = [....]:
Change MIDDLEWARE_CLASSES=[...] to MIDDLEWARE=[...]
Remove SessionAuthenticationMiddleware from the MIDDLEWARE=[...] list.
The MIDDLEWARE_CLASSES setting is deprecated in Django 1.10, and removed in Django 2.0.
The SessionAuthenticationMiddleware class is removed. It provided no functionality since session authentication is unconditionally enabled in Django 1.10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment