Re: Implementing a django cart using Django cart module Error: unhashable type dict

2018-09-04 Thread carl collins
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

Re: Implementing a django cart using Django cart module Error: unhashable type dict

2018-09-04 Thread pgopal1166
> > 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

Implementing a django cart using Django cart module Error: unhashable type dict

2018-09-04 Thread carl collins
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,