Starting Celery: AttributeError: 'module' object has no attribute 'celery'

后端 未结 6 1355
南旧
南旧 2021-02-04 02:33

I try to start a Celery worker server from a command line:

celery -A tasks worker --loglevel=info

The code in tasks.py:

import          


        
6条回答
  •  日久生厌
    2021-02-04 03:00

    For anyone who is getting the same error message for an apparently different reason, note that if any of the imports in your initialization file fail, your app will raise this totally ambiguous AttributeError rather than the exception that initially caused it.

提交回复
热议问题