Closed tubaman closed 7 years ago
Hrmm... it looks like LOGIN_URL already gets set correctly in django-user-accounts. I'm not sure why I'm having this issue.
Ok, so this looks like a workaround but it is probably not the right fix. I've opened an issue
Closing since I think this might be just a documentation issue
The LOGIN_URL default is /accounts/login/ which breaks since the django-user-accounts app login url is reverse('account_login').
The 404 happens with you hit a @login_required URL without being logged in yet.
This fixes the issue so that when hitting a login-protected URL, the user gets properly redirected to the login page.