[Django]-Overriding Django's reset password email templates

2👍

As it turns out, I had accidentally defined auth_views.password_reset twice in my URLs. Removing the duplicate fixed the problem.

👤Kieran

1👍

It should be as simple as that (docs).

url('^password_reset/$', auth_views.password_reset,
    {
        'template_name': 'accounts/reset_password.html',
        'email_template_name': 'email/password_reset/password_reset.txt',
        'html_email_template_name': 'email/password_reset/password_reset.html',
        'subject_template_name': 'email/password_reset/password_reset_subject.txt'
    },
    name='password_reset'),

Leave a comment