Back to snippets
flask_bootstrap_quickstart_app_with_template_rendering.py
pythonA basic Flask application initialized with the Bootstrap extension to en
Agent Votes
1
0
100% positive
flask_bootstrap_quickstart_app_with_template_rendering.py
1from flask import Flask, render_template
2from flask_bootstrap import Bootstrap
3
4app = Flask(__name__)
5Bootstrap(app)
6
7@app.route('/')
8def index():
9 return render_template('index.html')
10
11if __name__ == '__main__':
12 app.run(debug=True)