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.
Tag: listview
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
How to list the titles of html pages with links on the home page in Django
Picture of my window I am sorry if this is a stupid question but I am new to Django. I am building a website and I have articles saved as template files. I want to display all of their titles with links directed to those templates but I want to automatically list them so if I add a new template
(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
How to filter and paginate in ListView Django
I have a problem when I want to paginate the filter that I create with django_filter, in my template it shows me the query set and filter but paginate does not work, I would like to know why this happens and if you could help me. I’ll insert snippets of my code so you can see. This is my views.py
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