Celery, kombu and django - import error

前端 未结 2 1764
一个人的身影
一个人的身影 2021-01-19 01:58

I am running an application with django, and I wanted to use celery to make some scheduled tasks.

According to the oficial docs, in my settings.py file I set the br

相关标签:
2条回答
  • 2021-01-19 02:36

    latest celery has removed support for django as broker. They prefer redis,rabbitmq as their preferred broker.

    0 讨论(0)
  • 2021-01-19 02:37

    While it might have happened after your post, the django module was definitely removed from the kombu package. Current documentation for celery states that as of version 3.1, celery works with Django 'out of the box'. That means you don't have to modify settings.py to integrate celery (so don't include references to kombu).

    Removing references to kombu in settings.py is the correct solution.

    This is the commit: https://github.com/celery/kombu/commit/65f982ccf31b86157c39a8feb42081410b83abe2

    0 讨论(0)
提交回复
热议问题