def home(): # page = request.args.get('page', 1, type=int) quote = request.get_quote() posts = Post.query.order_by(Post.date_posted.desc()).paginate(per_page=5) return render_template('home.html', posts=posts, quote=quote)
def home(): posts = Post.query.all() quote = request.get_quote() return render_template('home.htm', posts=posts,quote=quote)
def home(): posts = Post.query.all() quotes =request.get_quote() return render_template('index.html', posts=posts, quotes=quotes)