Last active
March 2, 2018 15:48
-
-
Save gcamerli/13041afcdd27de34e5187da3bb0a5b7f to your computer and use it in GitHub Desktop.
Static page rendering from Flask
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 | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "<h1>Hello World</h1>" | |
if __name__ == "__main__": | |
app.run(host='0.0.0.0', port=3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment