X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=myslice%2Fsettings.py;h=b01b565312c6ac64450341407a5ad4571d6ca997;hb=38bd8b2e028d3ce52890e03c915330407c0f2e1c;hp=fc09fc343292a72f344fe6047f9a3d4cfe7d50a2;hpb=e1091940983901862271235173f9e8fe44ad933d;p=myslice.git diff --git a/myslice/settings.py b/myslice/settings.py index fc09fc34..b01b5653 100644 --- a/myslice/settings.py +++ b/myslice/settings.py @@ -31,7 +31,8 @@ except: if not config.myslice.portal_version: try: - PORTAL_VERSION = subprocess.check_output(["git", "describe"]) + v = subprocess.check_output(["git", "--git-dir", ROOT + "/.git", "describe"]) + PORTAL_VERSION = '-'.join(v.split('-')[:-1]) except: PORTAL_VERSION = 'not using git' @@ -90,7 +91,9 @@ MANAGERS = ADMINS #DEFAULT_FROM_EMAIL = "root@theseus.ipv6.lip6.fr" #EMAIL_HOST_PASSWORD = "mypassword" -DEFAULT_FROM_EMAIL = "OneLab Support " +if config.myslice.default_sender: + DEFAULT_FROM_EMAIL = config.myslice.default_sender + EMAIL_HOST = "localhost" EMAIL_PORT = 25 EMAIL_USE_TLS = False @@ -363,7 +366,7 @@ CSRF_FAILURE_VIEW = 'manifoldapi.manifoldproxy.csrf_failure' ####SLA##### -SLA_COLLECTOR_URL = "http://157.193.215.125:4001/sla-collector/sla" +SLA_COLLECTOR_URL = "https://157.193.215.125:4001/sla-collector/sla" SLA_COLLECTOR_USER = "portal" SLA_COLLECTOR_PASSWORD = "password"