Thanks Gopal
On Tue, Sep 4, 2018 at 4:12 PM wrote:
> Dear Carl,
>>
>
> I'm sorry, I've no idea what the Cart is. I'm assuming that it is a
> class which can be instantiated with some dictionary data.
> So you try passing request.data instead of just request to the Cart.
>
> Try to check by p
>
> Dear Carl,
>
I'm sorry, I've no idea what the Cart is. I'm assuming that it is a class
which can be instantiated with some dictionary data.
So you try passing request.data instead of just request to the Cart.
Try to check by printing request.data, it'll be a dict.
FYI you can check the
from django.template import loader
from django.http import HttpResponse
from django.template.loader import render_to_string
import django.template.loader
# Create your views here.
# Create your views here.
from cart.cart import Cart
from .models import Product
'''from cart.models import Category,
3 matches
Mail list logo