I have a product and a category model. Now I should filter the products according to the category. How can I do it?
where should i code? at views.py or at the html file?
actually I have an idea to render every category and inside that i should filter the products according to it. like,
VEGITABLES carrot tomato
FRUITS apple mango
SOMETHING ELSE something 1 something 2