Re: Count from 1 to 50

2009-07-29 Thread brawaga
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,

Re: Count from 1 to 50

2009-07-14 Thread The Danny Bos
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 >

Re: Count from 1 to 50

2009-07-14 Thread Michael
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

Re: Count from 1 to 50

2009-07-14 Thread Shawn Milochik
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 %

Count from 1 to 50

2009-07-14 Thread The Danny Bos
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