2
如果您的django项目名为“app”,是否可以运行celery命令行?如果django项目名称为“app”,Celery命令行错误
Django应用程序结构:
|- app
| |- __init__.py
| |- settings.py
| |- celery.py
|- manage.py
__init__.py
和celery.py
被设置为每文档:http://docs.celeryproject.org/en/master/django/first-steps-with-django.html
我收到以下错误ImportError: No module named celery
当我运行celery --app=app.celery:app worker
。当我将“应用程序”重命名为其他内容时,此错误不存在,但我宁愿不必这样做。