I am working on an implementation of an online shop using cartridge & mezzanine. I would like to include a "featured products" section using a category from cartridge's shop (product_category). I have created a test category, populated it with entries and am trying to view it from the homepage but it doesn't return anything. What should i be doing instead?
index.html
{% with category as "featured" %}
{% for product in products.object_list %}
(just using the category.html product display html for now)
views.py
def index(request):
products = Product.objects.all()
context = {'products': products}
return render(request, 'index.html', context)