From 67c0ea88af7fa66b331d452c5b7fa714d8b2bc6c Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Thu, 19 Oct 2023 09:21:01 +0200 Subject: [PATCH] Split FOI_MAIL_DOMAIN env var by comma --- fragdenstaat_de/settings/production.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fragdenstaat_de/settings/production.py b/fragdenstaat_de/settings/production.py index f69fe5b03..b9def3443 100644 --- a/fragdenstaat_de/settings/production.py +++ b/fragdenstaat_de/settings/production.py @@ -176,7 +176,10 @@ def TEMPLATES(self): EMAIL_PORT = 25 # FOI_EMAIL_ACCOUNT_NAME # FOI_EMAIL_ACCOUNT_PASSWORD - FOI_EMAIL_DOMAIN = env("FOI_MAIL_DOMAIN", ["fragdenstaat.de", "echtemail.de"]) + FOI_EMAIL_DOMAIN = [ + x.strip() + for x in env("FOI_MAIL_DOMAIN", "fragdenstaat.de,echtemail.de").split(",") + ] FOI_MAIL_SERVER_HOST = env("FOI_MAIL_SERVER_HOST", "mail.fragdenstaat.de") FOI_EMAIL_FIXED_FROM_ADDRESS = False FOI_EMAIL_FUNC = None