Ejemplo n.º 1
0
def tekIndexGoster(id):
    database = Db()
    sql = """ select * from "BlogYazisi" where "Id" = %s """
    data = database.read_data(sql, (id,))
    sql2 = """ select * from "Yorum" where "BlogId" = %s """
    data2 = database.read_data(sql2,(id,))
    return render_template("anasayfa/indexDetay.html", data=data, iki=data2)
Ejemplo n.º 2
0
def index():
    databse = Db()
    sql = """ select * from "BlogYazisi" """
    data = databse.read_data(sql)
    data.sort(key = sort, reverse = True)
    return render_template("anasayfa/index.html", data=data)