This question already has an answer here:
I found some under the tests
directory but I'm not sure if they are the right ones.
By authentication templates I mean login.htm
, password_reset.htm
, etc.
Some of the templates can be found at: http://devdoodles.wordpress.com/2009/02/16/user-authentication-with-django-registration/
You can use the auth templates at django.contrib.admin.templates.registration:
Those will have the look and feel of the Django Admin, so I would suggest to customize it.
No, it looks for those templates in a "registration" directory within your templates folder.
From the docs:
Docs: login, password_reset
By copying the templates located in django.contrib.admin.templates.registration as mentioned by DZPM above and placing them into your own registration app's templates directory e.g. *your_proj_root/registration/templates/registration/*
IMPORTANT! If you are keeping the same exact filenames for your templates, you have to remember to make sure that your django.contrib.admin app line is placed below your registration app line; otherwise, it will use the django.contrib.admin's registration templates in preference.
While the Django documentation explicitly states that "Django provides no default template for the authentication views", I found that it is trivial to use the admin templates. Just enable the admin app, then add this to urls.py:
All of the authentication urls work now, albeit with the Django admin look-and-feel.