I am using dj rest auth for authentication and i need to override email verification template with my custom html , according to documantion, i added these files to account/email directory:
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
and i put the custom html codes in email_confirmation_message.html file , but still i get the default html template in email , is there any step i am missing?
Put it inside templates
folder:
templates/account/email/email_confirmation_message.html
I guess that your TEMPLATE > DIRS
is like:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / 'templates'],
'APP_DIRS': True,
...
},
]