OR condition in django templates May 10, 2023 by Tarik in Django 1.2, you can use OR inside an IF tag…see the built-in template tags {% if var1 == 'val1' or var2 == 'val2' %}