Skip to content

Tag: listview

problems with get_context_data in ListView (django)

I need to show in a template two models: models.py: and created a ListView of this views.py I need to created a filter of the same ‘dimension’ so that in the template show only the subdimensions of that dimension. my template dimension.html: but if u notice, show all the subdimensiones in all card…

(django) Showing posts according to interests of users

I am pretty new to Django and still learning it, but I have to create something like medium.com. I want to show posts to users according to their interests. I added an interests field with a checkbox in a sign-up form. And of course, I added a category to the Post model. So, how can I show (to logged-in users

Python equivalent for C#’s generic List

I am creating a simple GUI program to manage priorities. I have successfully managed to add functionality to add an item to the listbox. Now I want to add the item to the something what is known as List<> in C#. Does such a thing exist in Python? For instance, in C#, to add an item to the listview I