Opened 7 years ago
Closed 7 years ago
#29070 closed Bug (invalid)
Admin login redirects to /accounts/login after upgrade to Django 2.0
Description (last modified by ) ¶
After upgrading to Django 2.0, our administrative site login redirects to the site-wide login URL (/accounts/login) instead of the admin login. This seems like a bug.
LOGIN_URL
and LOGOUT_URL
are both default, and path('admin/', admin.site.urls),
is the first URL listed in urlpatterns
.
If this is a known issue, great, if not, let me know and I will try to get a reproducible test case.
Change History (3)
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
This issue is due to a third-party app (django-two-factor-auth) overriding the login routes. Closing.
No, I haven't seen a report like this.