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/urls.py' with following

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url('', include('django.contrib.auth.urls')),
    url(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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/984a79a8-c985-4556-9d6d-094ce7a90dc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to