render_to cart html def cart request cart Carts objects filter user re

1
2
3
4
@render_to('cart.html')
def cart(request):
cart = Carts.objects.filter(user=request.user)
return {'cart': cart}