From d4918d085c90fd119e3ba73135ebf992fbacc52e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Kol=C3=A1=C5=99?= Date: Tue, 21 Nov 2023 18:18:25 +0100 Subject: [PATCH] chore(mailing): enforce console mailer while keeping smtp secrets in --- charts/templates/web-config.yaml | 1 + fiesta/fiesta/settings/project.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/templates/web-config.yaml b/charts/templates/web-config.yaml index c17b5d99..8b2f9f70 100644 --- a/charts/templates/web-config.yaml +++ b/charts/templates/web-config.yaml @@ -7,3 +7,4 @@ metadata: data: DJANGO_CONFIGURATION: "Production" DJANGO_ROOT_DOMAIN: {{ .Values.ingress.host | quote }} + DJANGO_MAILER_PRIMARY_BACKEND: "django.core.mail.backends.console.EmailBackend" diff --git a/fiesta/fiesta/settings/project.py b/fiesta/fiesta/settings/project.py index 40af3261..8f1988bf 100644 --- a/fiesta/fiesta/settings/project.py +++ b/fiesta/fiesta/settings/project.py @@ -39,7 +39,7 @@ def ALLOWED_HOSTS(self): return [f".{self.ROOT_DOMAIN}"] # overwritten by production mixins - EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" + EMAIL_BACKEND = Value(default="django.core.mail.backends.console.EmailBackend") def DEFAULT_FROM_EMAIL(self): return f"Fiesta+ "