From 503233d323eeefbcafc6fa5eb72e2cd7f487fe78 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 5 May 2026 12:39:45 +0200 Subject: [PATCH] Fix Celery: use autodiscover_tasks with full module path --- proyecto/celery.py | 2 +- proyecto/settings.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/proyecto/celery.py b/proyecto/celery.py index 5f5b31e..2a03a87 100644 --- a/proyecto/celery.py +++ b/proyecto/celery.py @@ -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 \ No newline at end of file +app.autodiscover_tasks(['tienda.tasks']) \ No newline at end of file diff --git a/proyecto/settings.py b/proyecto/settings.py index ec97e00..6e66468 100644 --- a/proyecto/settings.py +++ b/proyecto/settings.py @@ -423,7 +423,6 @@ CELERY_RESULT_BACKEND = os.getenv("REDIS_URL", "redis://localhost:6379/0") CELERY_ACCEPT_CONTENT = ['json'] CELERY_TASK_SERIALIZER = 'json' CELERY_RESULT_SERIALIZER = 'json' -CELERY_IMPORTS = ['tienda.tasks'] SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")