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
)