AttributeError: 'Flask' object has no attribute 'user_options'

后端 未结 4 612
醉梦人生
醉梦人生 2020-12-23 11:14

I am trying to setup this basic example from the following doc:

http://flask.pocoo.org/docs/patterns/celery/

But so far I keep g

4条回答
  •  独厮守ぢ
    2020-12-23 11:53

    like this:

    celery -A your_application worker
    

    where your_application stands:

    your_application = Flask(\__name\__)
    

    the python file name: your_application.py, it will work

    By the way, celery v4 is unsupported in Windows

提交回复
热议问题