3👍
✅
Is there a reason why your user login URL is the same as the admin app’s login URL? Is this by design?
Originally there was only the admin app that needed a login. This is my first foray on this project into non-admin login_required views. I will move this soonish – could this be causing the problem?
Looks like that is the case, though I don’t know the details. I tried it out in one of my projects http://localhost:8000/admin/login/?next=/valid_url/
and got the same error.
Solution: use a different view for user login.
Source:stackexchange.com