feat: add template based email content (html + plaintext fallback)

This commit is contained in:
ramvignesh-b
2026-04-28 01:00:34 +05:30
parent 48b6a06571
commit 409fc76619
8 changed files with 230 additions and 13 deletions
+15
View File
@@ -81,6 +81,21 @@ MIDDLEWARE = [
"django_structlog.middlewares.RequestMiddleware",
]
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(BASE_DIR, "templates")],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
],
},
},
]
ROOT_URLCONF = "config.urls"