문제

I'm running a Django app on Heroku Web servers. I've a form which sends a mail to the users.

For sending the mail, I'm using Celery as the background task. When I test it locally(ie on localhost), it works fine. But when I upload the code on Heroku, it shows me Application Error . On having a look at heroku logs , it throws an error saying

ImportError: cannot import name Celery

Where am I going wrong? I've also installed redis as my broker_url and have included django-celery in requirements.txt file which installs the same.

Why am I getting this error?

도움이 되었습니까?

해결책

I just renamed my celery app, and it worked. Thats the trick.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top