first commit
This commit is contained in:
7
pages/index.py
Normal file
7
pages/index.py
Normal file
@@ -0,0 +1,7 @@
|
||||
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
|
||||
Reference in New Issue
Block a user