Traditionally, I have configured the UWSGI configuration file to call an application like below:
mydirectory/uwsgi_application.ini ... #python module to import a
I am also using the flask-script manager , so what i did was
flask-script
created a wsgi.py .which was like.
wsgi.py
from app import * application = create_app("development")
then uwsgi --wsgi-file wsgi.py --callable application
uwsgi --wsgi-file wsgi.py --callable application
Note: the callable is the flask object name in the wsgi.py.