Re: Trying to build a cart using django cart. "" error unhashable type dict ""

2018-09-04 Thread Julio Biason
Hi Carl, The problem seems to be the use of `get_template`: https://docs.djangoproject.com/en/2.1/topics/templates/#usage The second parameter (the one you're using a dict) is not the values to pass to the template, but the name of the template engine to be used. I'd suggest using `render` ( htt

Re: Trying to build a cart using django cart. "" error unhashable type dict ""

2018-09-04 Thread RONAK JAIN
Are you not using class ? On Tue, Sep 4, 2018 at 6:44 PM carl collins wrote: > Here is the code for view.py in my cart app please help(also see the > screenshot): > > > from django.template import loader > from django.http import HttpResponse > from django.template.loader import render_to_strin

Trying to build a cart using django cart. "" error unhashable type dict ""

2018-09-04 Thread carl collins
Here is the code for view.py in my cart app please help(also see the screenshot): from django.template import loader from django.http import HttpResponse from django.template.loader import render_to_string import django.template.loader from cart.cart import Cart from .models import Product