Fix Celery: use autodiscover_tasks with full module path
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")
|
||||
|
||||
# Tasks loaded via CELERY_IMPORTS in settings.py
|
||||
app.autodiscover_tasks(['tienda.tasks'])
|
||||
Reference in New Issue
Block a user