Guest User

routes.py

a guest
Jul 15th, 2021
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. @userinfo.route("/")
  2. @userinfo.route("/home")
  3. def home():
  4.     # .query.all() means I get all info from the database.
  5.     Posts_db = Posts.query.all()
  6.     Posts_db = Posts_db
  7.     return render_template('home.html', Posts_db=Posts_db , title='home')
Advertisement
Add Comment
Please, Sign In to add comment