Re: django template strange behavior

2011-04-14 Thread Jason Culverhouse
You can use the template language to test against what you think are constants, the parser is actually testing 2 "literals". The parser tests for 2 literals with names 'None' and 'False'. When parser tries to resolve these in the context a VariableDoesNotExist exception is thrown and both object

django template strange behavior

2011-04-14 Thread carrier24sg
Hi guys, {% if None == False %} abc {% endif %} Strangely my template displayed abc. Any explanation? -- 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