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
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
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
3 matches
Mail list logo