[Settings] Add Django Debug Toolbar (optional)
[mygpo.git] / mygpo / cel.py
blob1c46aa023d0d595c1375eb349077864eab222e13
1 from __future__ import absolute_import
3 from django.conf import settings
5 from celery import Celery
7 import sys
8 import os
11 celery = Celery('mygpo.celery',
12 broker=settings.BROKER_URL,
13 backend=settings.CELERY_RESULT_BACKEND,
14 include=[
15 'mygpo.core.tasks',
16 'mygpo.api.tasks',
17 'mygpo.users.tasks',
18 'mygpo.data.tasks',
19 'mygpo.administration.tasks',
20 'mygpo.directory.tasks',
23 celery.conf.update(
24 **settings.CELERY_CONF
27 if __name__ == '__main__':
28 celery.start()