8 lines
219 B
Python
8 lines
219 B
Python
|
|
from celery import Celery
|
||
|
|
import os
|
||
|
|
|
||
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
|
||
|
|
|
||
|
|
app = Celery('config')
|
||
|
|
app.config_from_object('django.conf:settings', namespace='CELERY')
|
||
|
|
app.autodiscover_tasks()
|