from flask import Blueprint, render_template, current_app, request bp = Blueprint('main', __name__) @bp.route("/") def index(): return render_template("index.html") @bp.route("/upload", methods=["GET", "POST"]) def upload(): if request.method == "POST": # CSV upload logic here pass return render_template("upload.html")