Solution
@app.route('/titles')
def postsection():
posts = Blog.query.all()
return render_template('titles.html', posts=posts)
titles
{% for post in posts %}
{{post.title}}
{% endfor %}
@app.route('/titles')
def postsection():
posts = Blog.query.all()
return render_template('titles.html', posts=posts)
titles
{% for post in posts %}
{{post.title}}
{% endfor %}