Re: Hard-coded sting in IFEQUAL
Upgrade to 0.96 went smoothly. On Jul 10, 10:42 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > running .91 due to upgrade soon. > > For future reference, that would have been a very useful piece of data > to provide with your original report. Django 0.91 is 18 months old - > and a lot of very significant changes and bugfixes have been made in > that time (including, obviously, a fix for your particular problem). > > Yours, > Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Hard-coded sting in IFEQUAL
On 7/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > running .91 due to upgrade soon. For future reference, that would have been a very useful piece of data to provide with your original report. Django 0.91 is 18 months old - and a lot of very significant changes and bugfixes have been made in that time (including, obviously, a fix for your particular problem). Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Hard-coded sting in IFEQUAL
running .91 due to upgrade soon. On Jul 10, 11:27 am, Vincent Foley <[EMAIL PROTECTED]> wrote: > It works fine with me: > > >>> from django.template import Template, Context > >>> t = Template('''{% ifequal s "Some Thing" %}Equal{% else %}Not equal{% > >>> endifequal %}''') > >>> t.render(Context({'s': 'foo'})) > > 'Not equal' > > >>> t.render(Context({'s': 'Some Thing'})) > > 'Equal' > > What version of Django are you using? > > Vincent > > On Jul 10, 6:58 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > I don't see why this {% ifequal theclass "Some Thing" %} throws a > > TemplateSyntaxError " 'ifequal' takes two arguments " while this {% > > ifequal theclass "SomeThing" %} does not? > > > Any clarity would be welcomed. > > > Best --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Hard-coded sting in IFEQUAL
It works fine with me: >>> from django.template import Template, Context >>> t = Template('''{% ifequal s "Some Thing" %}Equal{% else %}Not equal{% >>> endifequal %}''') >>> t.render(Context({'s': 'foo'})) 'Not equal' >>> t.render(Context({'s': 'Some Thing'})) 'Equal' What version of Django are you using? Vincent On Jul 10, 6:58 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I don't see why this {% ifequal theclass "Some Thing" %} throws a > TemplateSyntaxError " 'ifequal' takes two arguments " while this {% > ifequal theclass "SomeThing" %} does not? > > Any clarity would be welcomed. > > Best --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Hard-coded sting in IFEQUAL
I don't see why this {% ifequal theclass "Some Thing" %} throws a TemplateSyntaxError " 'ifequal' takes two arguments " while this {% ifequal theclass "SomeThing" %} does not? Any clarity would be welcomed. Best --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---