From 31e11c53500c20284a4c518678798140d3d5eb75 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Thu, 20 Apr 2023 15:40:28 +1000 Subject: [PATCH] Configure ADMINS setting via environment variable --- pinaxcon/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index ef98098c..6b6a76f7 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -591,3 +591,5 @@ VENUELESS_SECRET = os.environ.get('VENUELESS_SECRET', SECRET_KEY) ACCOUNT_SIGNUP_REDIRECT_URL = '/dashboard/' ACCOUNT_LOGIN_REDIRECT_URL = '/dashboard/' + +ADMINS = [('', email) for email in os.environ.get('DJANGO_ADMINS', '').split(',') if email]