@login_required
def view(request):
    return render(request, 'cartapp/cart.html', context={'cart': Cart.objects.filter(user=request.user)})
@login_required
def view(request):
    return render(request, 'cartapp/cart.html', context={'cart': Cart.objects.filter(user=request.user)})