from flaskr.app import app from flaskr.models import initialize_database from flaskr.config import config if __name__ == '__main__': initialize_database() app.run( debug=config['flaskr']['debug'], host=config['flaskr']['host'] )
from flaskr.app import app if __name__ == '__main__': app.run(host='0.0.0.0', port=8000, debug=True)
from flaskr.app import app if __name__ == '__main__': app.run(debug=False)
from flaskr.app import app if __name__ == "__main__": app.run()
from flaskr.app import app if __name__ == '__main__': app.run(debug=True, ssl_context=('credentials/ssl.crt', 'credentials/ssl.key'))
from flaskr.app import app if __name__ == '__main__': app.run(debug=True, host='0.0.0.0')
import sys sys.path.insert(0, '/home/ubuntu/testing_workshop/') from flaskr.app import app as application if __name__ == "__main__": application.run()
from flaskr.app import app if __name__ == "__main__": print("it works now") app.run(debug=True)