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")