On 3 oct, 22:06, "David Durham, Jr." <[EMAIL PROTECTED]>
wrote:
> On Fri, Oct 3, 2008 at 12:13 PM, tsmets <[EMAIL PROTECTED]> wrote:
> > I have an application that records the status of an applications.
> > Basically something like :
> >  _ started-request
> >  _ started
> >  _ stop-requested
> >  _ stopped
> > + some technical informations (version, host, URL, ...)
>
> > I thought having a page that display per environment : dev, test,
> > acceptance, prod the status for one application.
> > I can easilly build a dictionnary where the keys is for that specific
> > environment the last 5 status change (named in my code :
> > app_deployed_status_lst).
>
> If I have you correctly, your data looks something like:
>
> env_history = { dev : [
>     {'started' : 'x', 'stopped' : 'y', 'version' : 'z'},
>      ... ],
>    test : [
>       .... ],
>    ..
>
> }
>
> so you can do something like:
>
> {% for env, statuses in env_history.items() %}

Django template's language is *not* Python !-)
You want:

{% for env, statuses in env_history.items %}



--~--~---------~--~----~------------~-------~--~----~
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