pinax / pinax-starter-projects

Pinax Starter Projects
MIT License
81 stars 39 forks source link

Set LOGIN_URL in settings.py #46

Closed tubaman closed 7 years ago

tubaman commented 7 years ago

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.

tubaman commented 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.

tubaman commented 7 years ago

Ok, so this looks like a workaround but it is probably not the right fix. I've opened an issue

tubaman commented 7 years ago

Closing since I think this might be just a documentation issue