#3256 closed defect (duplicate)
Template login.html moved from registration/ to admin/; update call to loader.
Reported by: | Arthur Hebert | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Contrib apps | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In django/contrib/auth/views.py, the login() method tries to load the template django/contrib/admin/templates/registration/login.html by default. The template file, however, is located in django/contrib/admin/templates/admin/login.html.
The logout() method in the same view points to the same directory and is correct. Perhaps these templates should be in the right place.
I patched this on my server by setting template_name='admin/login.html'. I am not yet sure if that will break anything else.
Change History (3)
comment:1 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 18 years ago
Keywords: | 1433 added |
---|---|
Version: | → 0.90 |
comment:3 by , 18 years ago
Keywords: | 1433 removed |
---|---|
Version: | 0.90 |
Reverted change. Mr. Anonymous, please don't change versions or keywords without reason.
Duplicate of #516, which was wontfix; The admin is a separate app to the auth app, so they get separate templates. registration/login.html is a suggested default that can be overridden when the login view is used in a URL pattern.