Django upgrade defined ALLOWED_HOSTS in settings
[unfold.git] / myslice / settings.py
index 0e0bf37..d18ca92 100644 (file)
@@ -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' 
 
@@ -374,4 +375,5 @@ SLA_COLLECTOR_PASSWORD = "password"
 # Example: "http://media.lawrence.com/static/"
 STATIC_URL = '/static/'
 
-
+# test
+ALLOWED_HOSTS = '*onelab.eu'