'There is a data base that stores the image path. Is there a way to implement that path?

  @member.route("/createreport")
def Createreport():
    if "username" not in session:
        return render_template('login.html',headername="Login เข้าใช้งานระบบ")
    with con:
        cur = con.cursor()
        sql = "SELECT mem_pic FROM tb_memberallow"
        cur.execute(sql)
        rows = cur.fetchall()

I want to put path in data base to use withpath = glob.glob("D:/project/test1/Flaskmyweb/testpeople/*.jpg")



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source