X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=myslice%2Fsettings.py;h=5c75970b675b04dd9ca9c1af3b5ed8501099bb19;hb=f8bf9fe459d94a73dff2c1f4fdcda88ac5031a95;hp=fe71e108697e4e150918a380f012cf7342231670;hpb=3aae671a1ca0cef870a268b88ddcde8d520d7621;p=myslice.git diff --git a/myslice/settings.py b/myslice/settings.py index fe71e108..5c75970b 100644 --- a/myslice/settings.py +++ b/myslice/settings.py @@ -2,6 +2,9 @@ import os.path +import djcelery +djcelery.setup_loader() + ### detect if we're in a build environment try: import manifold @@ -42,7 +45,7 @@ except: # when deployed from a package # this code is run by collectstatic too, so we cannot # assume we have ./static present already -HTTPROOT="/var/myslice-f4f" +HTTPROOT="/var/www/myslice/" # the place to store local data, like e.g. the sqlite db DATAROOT="/var/unfold" # if not there, then we assume it's from a devel tree @@ -233,6 +236,9 @@ INSTALLED_APPS = [ 'south', # Uncomment the next line to enable the admin: 'django.contrib.admin', + # FORGE Plugin app + 'djcelery', + 'forge', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'portal', @@ -242,6 +248,8 @@ INSTALLED_APPS = [ # this app won't load in a build environment if not building: INSTALLED_APPS.append ('rest') +BROKER_URL = "amqp://myslice:myslice@localhost:5672/myslice" + for aux in auxiliaries: if os.path.isdir(os.path.join(ROOT,aux)): print "Using devel auxiliary",aux