I am not even sure that makes sense so here is an example of what I was trying to do:# the python part in your view methodthings_by_day = { '2008-11-28' : [thing1, thing2], '2008-11-29' : [thing3, thing4, thing 5], '2008-11-30' : [thing6],}days = d.keys()days.sort()# The Django template part{% for day in days %} Here are the things for {{ day }} {% for thing in things_by_day.day %} do the thing