[Django]-Django 1.8: ImproperlyConfigured: Module "django.contrib.auth.middleware" does not define a "SessionAuthenticationMiddleware" attribute/class

2👍

for Django 2.0 and above

SessionAuthenticationMiddleware was removed in Django 2.0 (see Django 2.0 release notes here)

just remove it from MIDDLEWARE_CLASSES

posting it here because I faced the same problem when upgrading to Django 2

👤Aarif

1👍

You wrote : Django 1.8

But look at log : Django version 1.6.5

There is the problem – check django version in virtualenv or may be you just forgot activate virtualenv

Leave a comment