Hello Trey!

You can iterate by the entries of a dictionary, using this:

{% for i in d.items %}
 {{ i.0 }}: {{ i.1 }}
{% endfor %}

Regards,
Aidas Bendoraitis aka Archatas



On 6/7/07, Trey <[EMAIL PROTECTED]> wrote:
>
> Thanks Russ, I think my answer for today is three dimensional lists...
> Hooray for complex datastructures :)
>
> Tim, that's a very cool idea. I will research this some and see if I
> can abstract the calendar control.
>
> On Jun 7, 11:02 am, Tim Chase <[EMAIL PROTECTED]> wrote:
> > > Somehow I doubt this should really be in the view either. Maybe it's
> > > just one of those out liers that doesn't have a good place.
> >
> > Sounds like you're describing template tags.  They're ways of
> > creating reusable bits you can just drop into your templates to
> > abstract away the logic required to build them.
> >
> > http://www.djangoproject.com/documentation/templates_python/#writing-...
> >
> > particularly, the sections on simple tags and inclusion tags:
> >
> > http://www.djangoproject.com/documentation/templates_python/#shortcut...http://www.djangoproject.com/documentation/templates_python/#inclusio...
> >
> > You can just create a custom calendar control and then use that
> > new tag in your HTML--much like one might drop a control in a GUI
> > editor.
> >
> > -tim
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to