Exemplo n.º 1
0
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")
Exemplo n.º 2
0
def index():
    users = query_users_from_db()
    for user in users:
        print(user.toList())
    return render_template("index.html")