Re: why does if statement fail with

2010-01-09 Thread Karen Tracey
On Sat, Jan 9, 2010 at 8:16 PM, neridaj wrote: > Template error: > In template /Users/username/django-sites/username.com/public/templates/ > tagging/tag_list.html, > error at line 17 > 'if' statement improperly

Re: why does if statement fail with

2010-01-09 Thread neridaj
Template error: In template /Users/username/django-sites/username.com/public/templates/ tagging/tag_list.html, error at line 17 'if' statement improperly formatted 7 : {{ object.name }} 8 : 9 : 10 : {% endfor %} 11 : 12 : 13 : {% if

Re: why does if statement fail with

2010-01-08 Thread Justin Steward
On Fri, Jan 8, 2010 at 1:25 PM, Biju Varghese wrote: > if statement in template language checks only whether the variable is > empty or not... > comparison can be done with other variants of if such as ifequals > ifnotequal etc... > OP is using django 1.2.

Re: why does if statement fail with

2010-01-08 Thread Biju Varghese
if statement in template language checks only whether the variable is empty or not... comparison can be done with other variants of if such as ifequals ifnotequal etc... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: why does if statement fail with

2010-01-07 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 2:13 PM, neridaj wrote: > Yeah, I guess an error would help, oops. I just get 'if' statement > improperly formatted. This is the only if statement that has failed. http://www.chiark.greenend.org.uk/~sgtatham/bugs.html We need *all* the details, not just

Re: why does if statement fail with

2010-01-07 Thread neridaj
Yeah, I guess an error would help, oops. I just get 'if' statement improperly formatted. This is the only if statement that has failed. On Jan 7, 9:13 pm, Russell Keith-Magee wrote: > On Fri, Jan 8, 2010 at 1:10 PM, neridaj wrote: > > I'm using 1.2: >

Re: why does if statement fail with

2010-01-07 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 1:10 PM, neridaj wrote: > I'm using 1.2: > django.VERSION > (1, 2, 0, 'alpha', 0) In which case you're going to need to give us some debug information. "It doesn't work" isn't especially helpful. Django has a very healthy test suite, if comparisons

Re: why does if statement fail with

2010-01-07 Thread Eric Abrahamsen
On Jan 8, 2010, at 12:54 PM, Russell Keith-Magee wrote: On Fri, Jan 8, 2010 at 12:50 PM, Eric Abrahamsen wrote: On Jan 8, 2010, at 12:28 PM, neridaj wrote: Can anyone tell me why this less than symbol is causing this if statement to fail? {% if

Re: why does if statement fail with

2010-01-07 Thread neridaj
I'm using 1.2: >>> django.VERSION (1, 2, 0, 'alpha', 0) On Jan 7, 8:54 pm, Russell Keith-Magee wrote: > On Fri, Jan 8, 2010 at 12:50 PM, Eric Abrahamsen wrote: > > > On Jan 8, 2010, at 12:28 PM, neridaj wrote: > > >> Can anyone tell me why this less

Re: why does if statement fail with

2010-01-07 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 12:50 PM, Eric Abrahamsen wrote: > > On Jan 8, 2010, at 12:28 PM, neridaj wrote: > >> Can anyone tell me why this less than symbol is causing this if >> statement to fail? >> >>       {% if page_obj.number|add:"4" < paginator.count %} >> >>       {% endif

Re: why does if statement fail with

2010-01-07 Thread Eric Abrahamsen
On Jan 8, 2010, at 12:28 PM, neridaj wrote: Can anyone tell me why this less than symbol is causing this if statement to fail? {% if page_obj.number|add:"4" < paginator.count %} {% endif %} Because the if tag doesn't accept comparison operators. If you're trying to make a

why does if statement fail with

2010-01-07 Thread neridaj
Can anyone tell me why this less than symbol is causing this if statement to fail? {% if page_obj.number|add:"4" < paginator.count %} {% endif %} Cheers, J -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this