On 08/26/10 11:10, Andrea Imparato wrote:
How can i scan the zipped list in the template page? If I do
{% for f in zip %}
{{ f }}
{% endfor %}
How can I access the second item in the index?
I think since version 1.0, you can just use standard
tuple-unpacking syntax as detailed in the help[1]
On Thu, Aug 26, 2010 at 4:17 PM, Andrea Imparato
wrote:
>
> I have 2 lists and I have to scan them "concurrently" with the same
> indexes at the same time. Something like:
>
> {% for lists %}
> first item from the first list
> first item from the second list
> {% endfor %}
>
> I thought about crea
On 08/26/10 10:17, Andrea Imparato wrote:
I have 2 lists and I have to scan them "concurrently" with the same
indexes at the same time. Something like:
{% for lists %}
first item from the first list
first item from the second list
{% endfor %}
I thought about creating something like a map with
I have 2 lists and I have to scan them "concurrently" with the same
indexes at the same time. Something like:
{% for lists %}
first item from the first list
first item from the second list
{% endfor %}
I thought about creating something like a map with 2 values in each
index but I don't know how
On 25 août, 18:30, Andrea Imparato wrote:
> Hello all,
>
> is possible to do in templates double for like in C:
>
> for(int i = 0, int j = 0; i<0 && j<0;i++,j++) ?
What's your use case exactly ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
On 8/25/2010 12:30 PM, Andrea Imparato wrote:
> Hello all,
>
> is possible to do in templates double for like in C:
>
> for(int i = 0, int j = 0; i<0 && j<0;i++,j++) ?
>
No.
>
> I can't find nothing interesting in the docs :(
>
Try to avoid thinking of the template language as a programming
la
Hello all,
is possible to do in templates double for like in C:
for(int i = 0, int j = 0; i<0 && j<0;i++,j++) ?
I can't find nothing interesting in the docs :(
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
7 matches
Mail list logo