skip to Main Content

i want two pass two context in index.html file

my views.py from django.shortcuts import render, HttpResponse,redirect from .models import * # Create your views here. def index(request): products=Product.objects.all() params={'product':products} categories=Category.objects.all() category={'category':categories} return render(request,'index.html',params,category) i am creating an ecommerce website on django and i want to pass two context in…

VIEW QUESTION
Back To Top
Search