我正在尝试更改Django密码重置电子邮件模板的位置,这些电子邮件默认存储在/registration
中。关于如何做到这一点的任何想法?我目前有:
class CustomPasswordResetForm(PasswordResetForm):
def save(self):
super(CustomPasswordResetForm, self).save(email_template_name='<custom_directory>/<file>.html')
投掷
TypeError at /passreset/
save() got an unexpected keyword argument 'request' at
venv/lib/python2.7/site-packages/django/contrib/auth/views.py in password_reset, line 160