1
If your template folder is called regsitration
instead of registration
than this would be an easy solution to your problem
Otherwise your solution seems correct. Note that if you wish, you could change your login template in the global url configuration. See https://docs.djangoproject.com/en/1.9/topics/auth/default/#all-authentication-views for details. For the logout view, the default template resides in registration/logged_out.html
(as this redirects to the page after you log out).
Source:stackexchange.com