def index(): # 首页 print("==================数据库所有用户信息==================") users = query_users_from_db() for user in users: print(user.tolist()) print("=====================================================") # print(session) # resp = make_response(render_template("index.html")) # resp.set_cookie('qqqq', 'xxxxxxx') # return resp return render_template("index.html")
def index(): users = query_users_from_db() for user in users: print(user.toList()) return render_template("index.html")