+import myslice.components as components
+
+# import djcelery
+# djcelery.setup_loader()
+
+### detect if we're in a build environment
+try:
+ import manifold
+ building=False
+except:
+ building=True
+
+if not config.myslice.portal_version:
+ try:
+ PORTAL_VERSION = subprocess.check_output(["git", "describe"])
+ except:
+ PORTAL_VERSION = 'not using git'
+
+# DEBUG
+if config.myslice.debug :
+ DEBUG = True
+ INTERNAL_IPS = ("127.0.0.1","132.227.84.195","132.227.78.191","132.227.84.191")
+else :
+ DEBUG = False
+
+# theme
+if config.myslice.theme :
+ theme = config.myslice.theme
+else :
+ theme = None
+
+if config.myslice.theme_label :
+ theme_label = config.myslice.theme_label
+else :
+ theme_label = theme
+
+if config.myslice.theme_logo :
+ theme_logo = config.myslice.theme_logo
+else :
+ theme_logo = theme + '.png'
+
+# HTTPROOT
+if config.myslice.httproot :
+ HTTPROOT = config.myslice.httproot
+else :
+ HTTPROOT = ROOT
+
+# DATAROOT
+if config.myslice.httproot :
+ DATAROOT = config.myslice.dataroot
+else :
+ DATAROOT = ROOT