django celery运行报错 TypeError: can only concatenate list (not "tuple") to list

django执行celery操作时,报错如下:

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

还有同类型的错误

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

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

14     #    options = (CeleryCommand.options +
15     #           base.get_options() +
16     #           base.preload_options)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容