I try to make a month calendar view with python/Django. Is it possible to set variables in {% %} segments?
I want to have it like this:
- January:
- 01.01.2016 test entry
- 06.01.2016 on other entry
- 25.01.2016 last Jan entry
- February:
- 03.02.2016 hello
The top month names are generated when a new month starts. Is something like this possible?
{% if entry.month == lastmonth %}
// show month name
{% lastmonth = entry.month %}
And this in a for structure?