DEFAULT_FROM_EMAIL is setup in myslice.ini and used in settings.py
authorLoic Baron <loic.baron@lip6.fr>
Tue, 12 May 2015 13:09:11 +0000 (15:09 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Tue, 12 May 2015 13:09:11 +0000 (15:09 +0200)
myslice/myslice.ini.dist
myslice/myslice.ini.onelab
myslice/settings.py

index 729b049..a3732f3 100644 (file)
@@ -15,6 +15,7 @@ httproot =
 dataroot =
 components = sla,influxdb,forge
 secret_key = random_key
+default_sender = OneLab Support <support@onelab.eu>
 
 [database]
 # postgresql_psycopg2, mysql, sqlite3 or oracle
index a612a36..4adf9fd 100644 (file)
@@ -15,6 +15,7 @@ httproot =
 dataroot =
 components = sla,influxdb,forge
 secret_key = random_value 
+default_sender = OneLab Support <support@onelab.eu>
 
 [database]
 # postgresql_psycopg2, mysql, sqlite3 or oracle
index fc09fc3..b36281b 100644 (file)
@@ -90,7 +90,9 @@ MANAGERS = ADMINS
 #DEFAULT_FROM_EMAIL = "root@theseus.ipv6.lip6.fr"
 #EMAIL_HOST_PASSWORD = "mypassword"
 
-DEFAULT_FROM_EMAIL = "OneLab Support <support@onelab.eu>"
+if config.myslice.default_sender:
+    DEFAULT_FROM_EMAIL = config.myslice.default_sender
+
 EMAIL_HOST = "localhost"
 EMAIL_PORT = 25
 EMAIL_USE_TLS = False