Home > Back-end >  Django Model Query (Getting Categories based on posts)
Django Model Query (Getting Categories based on posts)

Time:01-19

Please I need help with a django model query. I am working on a blog app, with a model for posts and a model for categories. In my categories page I want to show all my categories but with a single post from each of those categories. e.g enter image description here I want a card with a single post from each category I tried running a loop but I'm getting confused Please help

  • Related