summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-03-17 00:49:22 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-03-17 00:49:22 +0100
commit4a05733a15d51a253ff114948bb24885f689b105 (patch)
tree6d70970880f826735695ab0f3bb8e9dd7b682782
parent69a20baf6b85b4c2bc936ef514e7a58072f92c07 (diff)
downloadChimère - projet de référence-4a05733a15d51a253ff114948bb24885f689b105.tar.bz2
Chimère - projet de référence-4a05733a15d51a253ff114948bb24885f689b105.zip
Add import task using celery
-rw-r--r--settings.py.example10
1 files changed, 10 insertions, 0 deletions
diff --git a/settings.py.example b/settings.py.example
index bbe100b..9b3235b 100644
--- a/settings.py.example
+++ b/settings.py.example
@@ -88,6 +88,15 @@ DATABASES = {
},
}
+# celery
+import djcelery
+djcelery.setup_loader()
+BROKER_HOST = "localhost"
+BROKER_PORT = 5672
+BROKER_USER = "guest"
+BROKER_PASSWORD = "guest"
+BROKER_VHOST = "/"
+
# Local time zone for this installation. Choices can be found here:
# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
# although not all variations may be possible on all operating systems.
@@ -177,6 +186,7 @@ INSTALLED_APPS = (
'django.contrib.sites',
'django.contrib.gis',
'django.contrib.staticfiles',
+ 'djcelery',
'south',
'chimere',
# activate it if you want to use migration scripts