Fix Celery: use CELERY_IMPORTS instead of autodiscover
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@ app = Celery('proyecto')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proyecto.settings')
|
||||
app.config_from_object('django.conf:settings', namespace="CELERY")
|
||||
|
||||
app.autodiscover_tasks(['tienda'])
|
||||
# Tasks loaded via CELERY_IMPORTS in settings.py
|
||||
Reference in New Issue
Block a user