Best way to implement listing multiple models in a template using ListView or TemplateView

6 views
Skip to first unread message

Chukwunonso Nwankpa

unread,
Mar 10, 2019, 12:32:42 AM3/10/19
to Django users
Hi,
Good Morning

I am trying to display information and a search from three different models on a page.

I could render the search effectively but the challenge is that the list is not being populated.
I could only return 1 model on the page plus the search

If I access the template through 127.0.0.1:8000/?q=  I get all the items in the three  models

but 127.0.0.1:8000 returns nothing or only one model. #as setup from my view

Please see attached screenshot of my view

Much help would be appreciated
Thanks




vieww.png
Reply all
Reply to author
Forward
0 new messages