A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [django-template-language]

The Django template language is the built-in template language to Django. It extends HTML with the ability to put dynamic data into the HTML on the server side.

Filter by
Sorted by
Tagged with
2
votes
1answer
73 views

Django turn ChoiceField into a submit button

I have made a ChoiceField into a select and submit button and wondered if this is the correct approach. forms.py ...
5
votes
3answers
405 views

Todo app for displaying a list of tasks

The main view in my (toy!) Todo app is, of course, to display the list of tasks. These are grouped by some criterion, and the tasks structure below is actually a ...
6
votes
1answer
32k views

Django query_set filtering in the template

Can I make my template syntax simpler? I'm hoping to eliminate the if and maybe also the for block. This worked in the shell ...