from flask import Blueprint, render_template from mg import tasks as t blueprint = Blueprint('stores', __name__) @blueprint.route('/') def index(): return render_template('stores/list.html', stores=t.list_stores(output_mode='objects'))