mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-25 10:49:16 +00:00
14 lines
285 B
Python
14 lines
285 B
Python
import os
|
|
|
|
from celery import Celery
|
|
from django.conf import settings
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dss.settings")
|
|
|
|
app = Celery('dss')
|
|
|
|
CELERY_TIMEZONE = 'UTC'
|
|
|
|
app.config_from_object('django.conf:settings')
|
|
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|