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

前端 未结 10 699
情书的邮戳
情书的邮戳 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:06

    got the same error

    my celery settings filename which was(celery.py) was conflicting with 'celery' package...

    so while doing this-> from celery import Celery , it was raising error- cannot import name Celery

    solution->just change the 'celery.py' to something else like 'celery-settings.py'

提交回复
热议问题