unable to load app 0 (mountpoint='') - Flask app with uwsgi

后端 未结 1 2040
轻奢々
轻奢々 2021-02-08 00:50

I have a python flask app in below structure

Admin
   |-app
       | -__init__.py
   |-wsgi.py

My wsgi.py contents is as follows



        
1条回答
  •  执笔经年
    2021-02-08 01:35

    "Callable not found is the issue" (not the import error, i suspect). Change:

    uwsgi --socket 127.0.0.1:8080 --protocol=http -w wsgi

    into this

    uwsgi --socket 127.0.0.1:8080 --protocol=http -w wsgi:app
    

    or

    uwsgi --socket 127.0.0.1:8080 --protocol=http --module wsgi --callable app
    

    see here, search for 'flask deploy'.

    0 讨论(0)
提交回复
热议问题