I get the below error when I try and start Flask using uWSGI. Here is how I start:
> # cd .. > root@localhost:# uwsgi --socket 127.0.0.1:6000 --fi
I had problems with the accepted solution because my flask app was in a variable called app. You can solve that with putting just this in your wsgi:
app
from module_with_your_flask_app import app as application
So the problem was simply that uwsgi expects a variable called application.
application