from app.main import app if __name__ == "__main__": app.run() wsgi code example
Example: if __name__ == '__main__': app.run(debug=True) not running
if __name__=='__main__':
app.run(debug=DEBUG, host=HOST, port=PORT)
if __name__=='__main__':
app.run(debug=DEBUG, host=HOST, port=PORT)