Use filter make_list
Example:
{% for i in number|make_list %}
...
{% endfor %}
Returns the value turned into a list. For an integer, it’s a list of
digits. For a string, it’s a list of characters.
When U use "10" instead of "number" (no quotes, plz) U should get
result required.
On Jul 14,
Great idea.
Don't know why I didn't think of that ...
Thanks man,
d
On Jul 15, 12:48 am, Shawn Milochik wrote:
> On Jul 14, 2009, at 10:27 AM, The Danny Bos wrote:
>
>
>
> > Is there a way to create a simple list using Django to go from 1 to
> > 50.
> > Eg:
>
> > 1, 2, 3, 4, 5 ... 49, 50
>
On Tue, Jul 14, 2009 at 10:48 AM, Shawn Milochik wrote:
>
>
> On Jul 14, 2009, at 10:27 AM, The Danny Bos wrote:
>
> >
> > Is there a way to create a simple list using Django to go from 1 to
> > 50.
> > Eg:
> >
> > 1, 2, 3, 4, 5 ... 49, 50
> >
> > I figured it'd be easy, but I can't get it.
> > I
On Jul 14, 2009, at 10:27 AM, The Danny Bos wrote:
>
> Is there a way to create a simple list using Django to go from 1 to
> 50.
> Eg:
>
> 1, 2, 3, 4, 5 ... 49, 50
>
> I figured it'd be easy, but I can't get it.
> I tried ...
>
> {% for i = 1 in 10 %}
> {{ i }},
> {% endfor %
Is there a way to create a simple list using Django to go from 1 to
50.
Eg:
1, 2, 3, 4, 5 ... 49, 50
I figured it'd be easy, but I can't get it.
I tried ...
{% for i = 1 in 10 %}
{{ i }},
{% endfor %}
No go.
--~--~-~--~~~---~--~~
You re
5 matches
Mail list logo