Django, ImportError: cannot import name Celery, possible circular import?

前端 未结 10 548
情书的邮戳
情书的邮戳 2021-01-31 14:43

I went through this example here:

http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html

All my tasks are in files called tasks.py.

10条回答
  •  遇见更好的自我
    2021-01-31 15:10

    Did you add the line:

    from __future__ import absolute_import

    to the top of your cloud/celery.py module?

    Read the breakdown of the example here: http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html

提交回复
热议问题