You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
358 B
Python
15 lines
358 B
Python
import os
|
|
from celery import Celery
|
|
|
|
from django.conf import settings
|
|
|
|
# set the default Django settings module for the 'celery' program.
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jdav_web.settings')
|
|
|
|
app = Celery()
|
|
app.config_from_object('django.conf:settings')
|
|
app.autodiscover_tasks()
|
|
|
|
if __name__ == '__main__':
|
|
app.start() # pragma: no cover
|