Saturday, September 30, 2017

Re: Auth Password Change template not working

I'd temporarily remove the built-in template that's being loaded so that TemplateDoesNotExist is raised. The debug page will show the locations that Django searched for the template.

On Wednesday, September 27, 2017 at 7:10:54 AM UTC-4, naitik gala wrote:
Hi all,

I am trying to add my own designed html to Auth urls.

One way obviously is to create my own view and implement Auth urls for them. Here, I will explicitly mention the html template that i have created. It would be like any other view that we would create.

But, there seems to be an alternate method. We can reuse the views already created in Auth module.

By reference of documentations, I made following steps:

1. created an html template 'myproject/myapp/templates/registration/login.html'
2. updated 'myproject/myproject/' with following

urlpatterns = [
('', include('django.contrib.auth.urls')),
(r'^', include('myapp.urls')),

This successfully worked for /login/ i.e. it showed my custom template.

It however now fails if I created for /password_change/ as i created 2 files for that 'myporject/myapp/templates/registration/password_change_form.html' and 'myporject/myapp/templates/registration/password_change_done.html'

Is this a bug or I am missing something? Please help.

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment