Шаблон верификации электронной почты
Я использую dj rest auth для аутентификации и мне нужно переопределить шаблон проверки электронной почты с моим собственным html, согласно documantion, я добавил эти файлы в каталог account/email:
account/email/email_confirmation_signup_subject.txt
account/email/email_confirmation_signup_message.txt
account/email/email_confirmation_subject.txt
account/email/email_confirmation_message.txt
account/email/email_confirmation_signup_message.html
account/email/email_confirmation_message.html
и я поместил пользовательские html коды в файл email_confirmation_message.html, но все равно я получаю стандартный html шаблон в письме, есть ли какой-нибудь шаг, который я пропустил?
Поместите его в папку templates
:
templates/account/email/email_confirmation_message.html
Я предполагаю, что ваш TEMPLATE > DIRS
похож на:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / 'templates'],
'APP_DIRS': True,
...
},
]