iMerica / dj-rest-auth

Authentication for Django Rest Framework
https://dj-rest-auth.readthedocs.io/en/latest/index.html
MIT License
1.62k stars 302 forks source link

Add missing allauth middleware to demo settings.py #576

Closed suspiciousRaccoon closed 3 months ago

suspiciousRaccoon commented 6 months ago

When I tried running python manage.py migrate --settings=demo.settings --noinput I got the following exception:

django.core.exceptions.ImproperlyConfigured: allauth.account.middleware.AccountMiddleware must be added to settings.MIDDLEWARE

Adding allauth.account.middleware.AccountMiddleware to settings.py fixes this and the migrations apply correctly.

iMerica commented 3 months ago

Fixed in #585