Commit bf81b1f4 authored by Chris Lamb's avatar Chris Lamb 💬

Autodiscover Celery tasks.

parent 5f1b0205
Pipeline #48402 passed with stages
in 9 minutes and 41 seconds
......@@ -4,6 +4,8 @@ from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'trydiffoscope.settings')
from django.conf import settings
app = Celery('trydiffoscope')
app.config_from_object('django.conf:settings')
app.autodiscover_tasks([])
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment