Skip to content

Instantly share code, notes, and snippets.

@joefutrelle
Created April 2, 2015 17:56
Show Gist options
  • Save joefutrelle/47e463589ee8506db88a to your computer and use it in GitHub Desktop.
Save joefutrelle/47e463589ee8506db88a to your computer and use it in GitHub Desktop.
Flask webapp template
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