2 ms·
technically: from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') t
by FergusArgyll 3y ago
technically:
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
then a templates/ folder to keep layout.html, index.html etc.
(and a static folder to keep js & css if you want)