Django and Celery, AppRegistryNotReady: Apps aren't loaded yet.

django版本升级导致celery启动报错,主要原因:django升级后的版本和celery版本不兼容。
我的案例:

# 升级前
django==1.8.11
celery==3.1.18
django-celery==3.2.1
# 升级后
django==1.11.24
celery==3.1.25
django-celery==3.2.2

报错信息:

[2019-12-20 14:44:58,741: ERROR/Worker-1] Process Worker-1
Traceback (most recent call last):
  File "C:\Python3.6\lib\site-packages\kombu\utils\__init__.py", line 323, in __get__
    return obj.__dict__[self.__name__]
KeyError: 'backend'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python3.6\lib\site-packages\billiard\process.py", line 292, in _bootstrap
    self.run()
  File "C:\Python3.6\lib\site-packages\billiard\pool.py", line 292, in run
    self.after_fork()
  File "C:\Python3.6\lib\site-packages\billiard\pool.py", line 395, in after_fork
    self.initializer(
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值