+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:
+ v = subprocess.check_output(["git", "--git-dir", ROOT + "/.git", "describe"])
+ PORTAL_VERSION = '-'.join(v.split('-')[:-1])
+ 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
+
+
+# dec 2013 - we currently have 2 auxiliary subdirs with various utilities
+# that we do not wish to package
+# * sandbox is for plugin developers
+# * sample is for various test views
+# for each of these, if we find a directory of that name under ROOT, it then gets
+# inserted in INSTALLED_APPS and its urls get included (see urls.py)
+auxiliaries = [ 'sandbox', 'sample', ]