diff --git a/proyecto/celery.py b/proyecto/celery.py index e2f97d2..79a6e42 100644 --- a/proyecto/celery.py +++ b/proyecto/celery.py @@ -1,8 +1,12 @@ from celery import Celery import os -app = Celery('proyecto') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proyecto.settings') + +app = Celery('proyecto') app.config_from_object('django.conf:settings', namespace="CELERY") +import django +django.setup() + from tienda import tasks \ No newline at end of file