Celery and Django - No module named 'django'

前端 未结 2 852
闹比i
闹比i 2021-01-21 04:53

I use instructions described here. Python 2.7 and Celery 3.1.17.

In celery.py I have (in beginning):

from __future__ import absolute_import
import os
fro         


        
2条回答
  •  长发绾君心
    2021-01-21 04:56

    For me the issue was that I had kombu.transport.django in INSTALLED_APPS. I was initially using Django as the transport agent, but when I upgraded to the latest Celery version, which does not support Django as a transport agent, I still had kombu.transport.django in INSTALLED_APPS. When I removed that reference, I no longer got this error when starting celery.

提交回复
热议问题