Skip to content

Instantly share code, notes, and snippets.

@srcrip
Created September 28, 2016 01:38
Show Gist options
  • Save srcrip/8c0ee1a11cc5bef812cad24b6b0402d7 to your computer and use it in GitHub Desktop.
Save srcrip/8c0ee1a11cc5bef812cad24b6b0402d7 to your computer and use it in GitHub Desktop.
Boilerplate for new flask apps
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
if __name__ == "__main__":
app.run()
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment