Django 电子邮件主题 "EMAIL_SUBJECT_PREFIX" 被忽略

Django email subject "EMAIL_SUBJECT_PREFIX" is ignored

我正在使用 Django + Wagtail + Allauth,我想在用户注册或忘记 her/his 密码时更改主题:

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
EMAIL_SUBJECT_PREFIX = '[Django] '

虽然我将 EMAIL_SUBJECT_PREFIX 设置为“[Django]”,但我使用的是“[example.com]”。

web_1  | Content-Type: text/plain; charset="utf-8"
web_1  | MIME-Version: 1.0
web_1  | Content-Transfer-Encoding: 7bit
web_1  | Subject: [example.com] Password Reset E-mail
web_1  | From: webmaster@localhost
web_1  | To: me@me.com
web_1  | Date: Wed, 26 Feb 2020 15:04:41 -0000
web_1  | Message-ID: <158272948175.190.1882653498152410368@69079ce78170>

你知道为什么吗?如果还有其他方法可以更改前缀?

刚刚发现我应该使用:ACCOUNT_EMAIL_SUBJECT_PREFIX

请注意 ACCOUNT_EMAIL_SUBJECT_PREFIX 是一个 Allauth setting 结束而不是 Django 核心设置。