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:
from module_with_your_flask_app import app as application
So the problem was simply that uwsgi expects a variable called application
.