facebook facebook facebook facebook facebook

Tag Archives: python

Comparing string with integer in Django’s template

As you can’t change the type of variable straight when working inside a Django template and you can only do it to the variables going TO the template, I found a stupid work around it.
Say you have variable a = ‘2′ and b = 2 and you want to compare them. The way I did [...]