Created
April 2, 2015 17:56
-
-
Save joefutrelle/47e463589ee8506db88a to your computer and use it in GitHub Desktop.
Flask webapp template
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, Response | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return Response('<h1>Hello, world.</h1>',mimetype='text/html') | |
if __name__=='__main__': | |
app.run(host='0.0.0.0',port=8080,debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment