为了账号安全,请及时绑定邮箱和手机立即绑定

python manage.py celery worker -l INFO必报这个错

  File "/Users/podao/venv/celery_imooc/lib/python2.7/site-packages/django/core/management/__init__.py", line 40, in load_command_class

    module = import_module('%s.management.commands.%s' % (app_name, name))

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module

    __import__(name)

  File "/Users/podao/venv/celery_imooc/lib/python2.7/site-packages/djcelery/management/commands/celery.py", line 11, in <module>

    class Command(CeleryCommand):

  File "/Users/podao/venv/celery_imooc/lib/python2.7/site-packages/djcelery/management/commands/celery.py", line 23, in Command

    preload_options)

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


正在回答

1 回答

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

# options = (cc_options +
#            base_options +
#            preload_options)


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

python manage.py celery worker -l INFO必报这个错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信