how can I filter the groups based on the user in Django-template-language with if else condition ...
how can I filter the groups based on the user in Django-template-language with if else condition ...
I would like to return in my Link.html the number of links contained in allLinks JSON variable. So far I guess I misunderstand the use of get_context_ ...
I am using Django 3.2 I am writing a moderation app, and I want to be able to display only approved values in my template. I want to be able to use ...
I have a custom filter that looks like this register = template.Library() @register.filter def makebreadcrumbs(value, arg): pass ...
This is probably a simple answer, but I can't seem to find it in the docs. How do I display the value of a choice field in template tags? Using .valu ...
there is a model books where i want to fetch all the objects and display it to user using django templates and with django template tag im able to ...
I'm trying to localize a component with get_current_language and I need to pass the language_code inside a filter: {% get_current_language as LANGUAG ...
I'd like to capitalize a string variable and translate it at the same time, but i can't find how to do this in the api docs. i.e. this is throwing an ...
I have a model which lists projects - one of these fields records a projects' state as foreign key to a status model. I would like to have a view whe ...
i want to see specific category wise post, i created category app and blog app.i want show top 5 or 10 post in home.html.that's why i need 4 specific ...
I'm trying to build a website for tv series using Django framework, I put in the models.py all kinds of details about that show and a JSONField (named ...
I am a beginner in Django. Right now i am working on my first project: reservation of sits for cinema event. The html map of sits is based on the arra ...
Hi I am letting the user upload multiple images per project but so far the images are not displayed. In projects.html all projects should be displayed ...
So I have the following table in my template: "fruits" and "vegetables" are lists passed as context from the view. The following custom filter allo ...
I have a template tags that takes ID on template and returns a list, I want to check the list if the variable is available and make checkbox input che ...
I want to iterate over a list of items and put them in a table, but I want the table to break after x items. I am using bootstrap5 to format my table. ...
I would like to know how to count all the true/false booleans inside a for-loop in my django template, but im not sure how to achieve this inside the ...
How can I loop through items in django template. Here, first I want to loop 1 and loop 2 on figure tag and again I want to loop entire div and loop ...
I want to dynamically add icons from my static dir when using a template tag, but I do not want to add them in the templates HTML, but using a filter: ...
I want to show 10 products instead of all in template ...