Update requirements
[mygpo.git] / mygpo / celery.py
blob6be6bb4cae80a81c2f407ec82750e2d84b3a6cf8
1 import os
3 from django.conf import settings
5 from celery import Celery
7 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mygpo.settings')
9 celery = Celery('mygpo.celery')
10 celery.config_from_object('django.conf:settings')
11 celery.autodiscover_tasks(lambda: settings.INSTALLED_APPS)