backend/django
Django: logout when get for django-allauth
seul chan
2018. 5. 23. 18:55
Recently I use django-allauth. (github here). It’s useful for social login, and upgrading functions for default login.
When using logout, allauth basically supply logout confirm page.
If you want to remove this page, and just logout when get (/accounts/logout), add this to settings.py
ACCOUNT_LOGOUT_ON_GET = True