8 lines
252 B
Python
8 lines
252 B
Python
from flask import Blueprint, render_template
|
|
from models import db, User
|
|
index_bp = Blueprint('index', __name__)
|
|
|
|
@index_bp.route('/')
|
|
def index():
|
|
return render_template('home.html',users=User.query.limit(20).all()) # or your index page template
|