2016-07-26 4 views
2

django 프로젝트의 이름이 "app"인 경우 셀러리 명령 줄을 실행할 수 있습니까?django 프로젝트의 이름이 "app"인 셀러리 명령 줄 오류

장고 응용 프로그램 구조 :

|- app 
| |- __init__.py 
| |- settings.py 
| |- celery.py 
|- manage.py 

__init__.pycelery.py은 문서에 따라 설정됩니다 : 나는 celery --app=app.celery:app worker을 실행할 때 http://docs.celeryproject.org/en/master/django/first-steps-with-django.html

나는 다음과 같은 오류 ImportError: No module named celery를 얻을. "app"의 이름을 다른 것으로 바꾸면이 오류가 나타나지 않지만이를 수행하지 않는 것이 좋습니다.

답변

0

당신은 현재 셀러리 버전과 셀러리를 표시

celery --version 

가상 환경 셀러리 버전을 확인 패키지를 설치 한 후

pip install celery 

같은 셀러리 패키지를 가상 환경을 설치해야합니다 --help을 보여 주기만하면 enter image description here