django==2.1.2 celery==4.1.1 启动celery报错 解决

Python3 manage.py celery worker -4 --loglevel=info

启动后报错

TypeError: can only concatenate list (not "tuple") to list

 

可以用这个解决方法:
找到python安装库的位置,找到该文件 \lib\site-packages\djcelery\management\commands\celery.py。在文件中注释掉如下代码:

# options = (cc_options +
#            base_options +
#            preload_options)
posted @ 2022-03-22 14:55  六翅兽  阅读(68)  评论(0)    收藏  举报