We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ee989 commit e1d95e4Copy full SHA for e1d95e4
backend/fpbase/celery.py
@@ -1,8 +1,7 @@
1
import os
2
3
from celery import Celery
4
-
5
-import proteins.tasks # noqa: F401
+from django.conf import settings
6
7
if "DJANGO_SETTINGS_MODULE" not in os.environ:
8
os.environ["DJANGO_SETTINGS_MODULE"] = "config.settings.local"
@@ -11,4 +10,4 @@
11
10
app.config_from_object("django.conf:settings", namespace="CELERY")
12
13
# Load task modules from all registered Django app configs.
14
-app.autodiscover_tasks()
+app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
0 commit comments