How to get access to next object on demand in list in django template? -
This is a newbie question, I think.
I want to duplicate with two lists: first for loop and second when some position is correct. How to do this in a DJ ango template
I will try to do simple calendars.
Legend:
Events - Listings with Event Items
Month - Calendar.Calendar (). Month day calculator (with object time-punctual)
{% in month for week} {% day in day%} {% day if & lt; Events.0.startdate.date%} & lt; A href = "{{events.0.get_absolute_url}}" & gt; {{Day}} & lt; / A & gt; Increasing incidents {% else%} {{day}} {% endif%} {% endfor%} {% endfor%}
Comments
Post a Comment