2
votes

How can I override the reset password email template from django rest-auth?

Here are the urls I'm talking about:

 url(
    regex=r'^contrib/password_reset/$',
    view=password_reset,
    name='password_reset'
),

url(r'^api/rest-auth/password/reset/$', auth_views.PasswordResetView.as_view(),
    name='rest_password_reset'),
1

1 Answers

1
votes

You need to make a custom PassswordResetSerializer first and made it work in the settings.

For further information, see this answer. I did that and it worked. The only difference would be that I saved my template in this route: /templates/account/registration/password_reset_email.html. I have a txt version aswell.