Fixed email templates failing to load and updated README.md

This commit is contained in:
Keannu Christian Bernasol 2024-05-10 23:46:48 +08:00
parent 8d40a33882
commit fe59d3883a
4 changed files with 21 additions and 12 deletions

View file

@ -87,7 +87,7 @@ EMAIL_HOST = get_secret('EMAIL_HOST')
EMAIL_HOST_USER = get_secret('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = get_secret('EMAIL_HOST_PASSWORD')
EMAIL_PORT = get_secret('EMAIL_PORT')
EMAIL_USE_TLS = get_secret('EMAIL_USE_TLS')
EMAIL_USE_TLS = (get_secret('EMAIL_USE_TLS') == 'True')
EMAIL_ADDRESS = (get_secret('EMAIL_ADDRESS') == 'True')
# Application definition
@ -183,7 +183,7 @@ TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
BASE_DIR / 'templates',
BASE_DIR / 'emails/templates/',
],
'APP_DIRS': True,
'OPTIONS': {