How to set custom template in Class PasswordResetView
425 views
Skip to first unread message
Rohan Purekar
unread,
Jun 13, 2017, 4:46:26 PM6/13/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I have implemented class based password reset view as instructed in django1.11 but the template being used is the default template, I want to use a custom template. Where I am stuck is If I have to use a custom template then I will have to call get and post functions to return the template to be rendered but what do I write in those functions I am not getting that part.
Thanks in advance
Tim Graham
unread,
Jun 13, 2017, 7:50:18 PM6/13/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
What does your code look like now? You can subclass the PasswordResetView and set the appropriate attribute for whichever template you want to override.