Re: If less than in template language

2009-03-29 Thread Robert
Sorry, but I really am relatively new to Django, and although I've been poking around for quite a while, I still just can't get that package to work. When I tried to install it inside of the contrib folder, and then add it to the 'installed applications' in the settings.py file, i kept on getting

Re: If less than in template language

2009-03-22 Thread Alex Gaynor
On Sun, Mar 22, 2009 at 10:01 PM, Robert wrote: > > Looks great! > Stupid question... it's been a while since i've worked in django. > Where's a good place to physically store that document on the server? > sorry! > > On Mar 22, 8:16 pm, Alex Gaynor wrote: > > On Sun, Mar 22, 2009 at 8:15 PM, Ro

Re: If less than in template language

2009-03-22 Thread Robert
Looks great! Stupid question... it's been a while since i've worked in django. Where's a good place to physically store that document on the server? sorry! On Mar 22, 8:16 pm, Alex Gaynor wrote: > On Sun, Mar 22, 2009 at 8:15 PM, Robert wrote: > > > Hey, > > I'm trying to make a template that o

Re: If less than in template language

2009-03-22 Thread Alex Gaynor
On Sun, Mar 22, 2009 at 8:15 PM, Robert wrote: > > Hey, > I'm trying to make a template that only reveals the first four items > of a list, and then handles the rest of the list in a different > respect, ie: > > for item in list > if forloop.counter < 3 { > do something > } else { > do something

If less than in template language

2009-03-22 Thread Robert
Hey, I'm trying to make a template that only reveals the first four items of a list, and then handles the rest of the list in a different respect, ie: for item in list if forloop.counter < 3 { do something } else { do something else } but I can't come up with an eloquent way to do this in the dj