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

allauth.account.middleware.AccountMiddleware must be added to settings.MIDDLEWARE in the demo project #555

Closed daniel-unyi-42 closed 8 months ago

daniel-unyi-42 commented 9 months ago

It doesn't work otherwise.

RonaldinhoL commented 9 months ago

same

RonaldinhoL commented 9 months ago

nvm, just add allauth.account.middleware.AccountMiddleware to middleware

ozgurturkiye commented 9 months ago

Does order matter when adding "middleware"?

mweinelt commented 8 months ago

Does order matter when adding "middleware"?

https://github.com/pennersr/django-allauth/blob/main/allauth/account/apps.py#L13-L17

The test here does not care for the order.

colinkingswood commented 3 weeks ago

This ought to be added to the documentation.