Closed Mark-Shine closed 8 years ago
I had to add CELERY_IMPORTS = ["djcelery_email.tasks"]
to settings.py to get it working.
@Mark-Shine have you tried the above suggestion? Does that fix it as well? We need to keep the TASK_CONFIG
bit so that tasks can be configured in settings.
ENV: django 1.6.5, celery 3.1.17, python 2.7
Celery has setup, everything is ok. I have test function add().
I go with instruction, but nothing happened.
So l looked into the code, and change this line
@shared_task(_TASK_CONFIG) def send_emails(messages, backend_kwargs=None, _kwargs):
to
@shared_task def send_emails(messages, backend_kwargs=None, **kwargs):
then it works!