Flask-Blog-Tutorial icon indicating copy to clipboard operation
Flask-Blog-Tutorial copied to clipboard

there should be another base function defined to render base.html

Open Simran2404 opened this issue 2 years ago • 0 comments

from flask import Blueprint, render_template from flask_login import login_required, current_user

views = Blueprint("views", name)

@views.route("/") def base(): return render_template("base.html", name="guest") @views.route("/home") def home(): return render_template("home.html", name=current_user.username)

Simran2404 avatar Aug 30 '23 05:08 Simran2404