Ejemplo n.º 1
0
def thongso(brand, name):

    if request.method == "GET":
        info = Bike.objects(bikename=name)
        return render_template("thongso.html",
                               hangxe=brand,
                               dongxe=name,
                               info=info)
    if request.method == "POST":
        return render_template("homepage.html")
Ejemplo n.º 2
0
def search(search_name):
    print(search_name)
    bikes = Bike.objects(hangxe__icontains=search_name)
    print(bikes)
    return redirect("<brand>/<search_name>")
Ejemplo n.º 3
0
def thongso(brand,name):
  info = Bike.objects(bikename=name)
  return render_template("thongso.html", hangxe = brand, dongxe = name, info = info)
Ejemplo n.º 4
0
def phankhuc(brand):
    if request.method == "GET":
        bikes = Bike.objects(hangxe=brand)
        return render_template("phankhuc.html", hangxe=brand, bikes=bikes)
    if request.method == "POST":
        return render_template("homepage.html")
Ejemplo n.º 5
0
def phankhuc(brand):
  bikes = Bike.objects(hangxe=brand)
  return render_template("phankhuc.html",hangxe=brand, bikes = bikes)