Exemplo n.º 1
0
def single(id):
    detail_mobile = mobile_collection.find_one({"_id": ObjectId(id)})
    allphone = mobile_collection.find()
    print(detail_mobile)
    return render_template('single.html',
                           detail_mobile=detail_mobile,
                           allphone=allphone)
Exemplo n.º 2
0
def detail8(type):
    phone_list = []
    filter_phone = mobile_collection.find()
    for phone in filter_phone:
        if type in phone['detail8']:
            phone_list.append(phone)
            print(phone)
    return render_template('filter.html', phone_list=phone_list)
Exemplo n.º 3
0
def index():
    allphone = mobile_collection.find()
    return render_template('index.html', allphone=allphone)
Exemplo n.º 4
0
def products():
    allphone = mobile_collection.find()
    return render_template('products.html', allphone=allphone)