Skip to content
Advertisement

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 cards, not only the subdimension of these dimension.

Using a while loop to output a list after user input

I’m new to python and im attempting for my program to output a the variable “movie genre” vertically once a user enters their name. I plan to use a while loop but keep hitting the error “movie_genre”. And perplexed as to how to proceed. Answer You didn’t show error message but if this is your original indentations then problem is

(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

Advertisement