mirror of
https://github.com/jazzband/django-celery-monitor.git
synced 2026-03-16 22:00:24 +00:00
15 lines
370 B
Python
15 lines
370 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
import os
|
|
|
|
from celery import Celery
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')
|
|
|
|
app = Celery('proj')
|
|
|
|
# Using a string here means the worker doesn't have to serialize
|
|
# the configuration object.
|
|
app.config_from_object('django.conf:settings', namespace='CELERY')
|
|
|
|
app.autodiscover_tasks()
|