Example #1
0
def index(request):
    products = Product.get_top()
    context = {
        'products':products
    }
    return render(request, 'main/index.html', context=context)