I would like to know if there is a way to do a short if-else in a django template, e.g. in php?
<?=$variable ? 'String for true' : 'String for false'?>
If the value of the variable is true, display String for trueotherwiseString for false
source
share