Django 海关;html“电子邮件”模板“名称”;不起作用
我正在尝试自定义应用程序发送的密码重置电子邮件,但未成功。我的应用程序忽略了我的声明并一直发送这个声明:django/contrib/admin/templates/registration/password\u reset\u email.html 这是我的相关url.py声明:Django 海关;html“电子邮件”模板“名称”;不起作用,django,Django,我正在尝试自定义应用程序发送的密码重置电子邮件,但未成功。我的应用程序忽略了我的声明并一直发送这个声明:django/contrib/admin/templates/registration/password\u reset\u email.html 这是我的相关url.py声明: # Password reset path('password_reset/', auth_views.PasswordResetView.as_view(template_name = 'account/passw
# Password reset
path('password_reset/', auth_views.PasswordResetView.as_view(template_name = 'account/password_reset_form.html', html_email_template_name='account/password_reset_email.html', success_url = reverse_lazy('account:password_reset_done')), name = 'password_reset'),
文件templates/account/password\u reset\u email.html存在并包含内容
非常感谢,我为这件事发疯了 您使用的视图变量是错误的
email_template_name
Django docs关于您使用的视图变量是错误的
email_template_name
Django文件关于