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

前端 未结 10 687
情书的邮戳
情书的邮戳 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 15:15

    I have face similar type of issue: from celery import Celery ImportError: cannot import name 'Celery' from 'celery'

    Another simple way to solve this: If your package have celery configuration in celery.py this is the reason that it is causing problems. Rename it something like celery_settings.py

提交回复
热议问题