from app import app from flask import render_template @app.route("/") @app.route("/index") def index(): user = {"username": "Bolaji"} posts = [ {"author": {"username": "Miloud"}, "body": "Beautiful day in Meknes!"}, {"author": {"username": "Sebtaoui"}, "body": "The Farkouss movie was lit!"}, ] return render_template("index.html", title="Home", user=user, posts=posts)