While the Django documentation explicitly states that "Django does not provide a default template for authentication views," I found it trivial to use admin templates. Just enable the admin application and then add it to urls.py:
url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'admin/login.html'}), url('^accounts/', include('django.contrib.auth.urls')),
Now all authentication URLs work, albeit with the look of a Django administrator.
Travis May 19 '13 at 12:45 a.m. 2013-05-19 00:45
source share