Template login.html moved from registration/ to admin/; update call to loader.
|Reported by:||Arthur Hebert||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.