aboutsummaryrefslogtreecommitdiffstats
path: root/src/pharos_dashboard
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-27 15:00:46 -0800
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-27 15:05:54 -0800
commit766dd613a68451652a54f7eab7f476c4b66dbdf8 (patch)
tree0141f0905db9880f1f7807cbb0442aaaf5800a6d /src/pharos_dashboard
parent5aa91201db4fee539a60f2f9e798593448d42af7 (diff)
Allow Configuring 'DEFAULT_EMAIL_FROM' in Django
This sets the default 'FROM' address in the header of outgoing emails from the system. Making this configurable allows users to specify the address notification emails come from. Change-Id: Ibe229ef503847411f4879d5715392f816a455733 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'src/pharos_dashboard')
-rw-r--r--src/pharos_dashboard/settings.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pharos_dashboard/settings.py b/src/pharos_dashboard/settings.py
index 361c4a1..0ac5479 100644
--- a/src/pharos_dashboard/settings.py
+++ b/src/pharos_dashboard/settings.py
@@ -196,3 +196,4 @@ EMAIL_PORT = os.environ['EMAIL_PORT']
EMAIL_HOST_USER = os.environ['EMAIL_HOST_USER']
EMAIL_HOST_PASSWORD = os.environ['EMAIL_HOST_PASSWORD']
EMAIL_USE_TLS=True
+DEFAULT_EMAIL_FROM = os.environ.get('DEFAULT_EMAIL_FROM', 'webmaster@localhost')