move creation of user tokens into db module
[mygpo.git] / mygpo / cel.py
blob6a61b6abae853b65c8a965abb0353c6c6da4886f
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.BACKEND_URL,
14 include=[
15 'mygpo.core.tasks',
16 'mygpo.api.tasks',
17 'mygpo.users.tasks',
18 'mygpo.data.tasks',
19 'mygpo.admin.tasks',
20 'mygpo.directory.tasks',
23 celery.conf.update(
24 **settings.CELERY_CONF
27 if __name__ == '__main__':
28 celery.start()