Last active
July 26, 2020 21:04
-
-
Save Timtech4u/7b420b74d83cf9e42ab0d7bfce60c8b6 to your computer and use it in GitHub Desktop.
Hello World - Flask Web Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runtime: python37 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1> Hello World from Flask Web App </h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request | |
app = Flask(__name__, static_url_path='', static_folder='') | |
@app.route('/') | |
def root(): | |
return app.send_static_file('index.html') | |
if __name__ == '__main__': | |
app.run(host='127.0.0.1', port=8080, debug=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flask |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment