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)
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)
Пример #3
0
def index():
    databse = Db()
    sql = """ select * from "User" """
    data = databse.read_data(sql)

    return render_template("admin/uye/index.html", data=data)
Пример #4
0
def index():
    databse = Db()
    sql = """ select * from "BlogYazisi" """
    data = databse.read_data(sql)

    return render_template("admin/blog/index.html", data=data)