How do you structure a simple app with Flask and Bootstrap?

You need a Python file (main.py in this example) and a HTML file (index.html in this example).

main.pyfrom flask import Flask, render_template
from flask_bootstrap import Bootstrap

app = Flask(__name__)
Bootstrap(app)


@app.route("/")
def home()…

k4th4

Code Newbie learning Python

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store