{% if backends == 'Cannot get backends' %} {{backends}} {% else %} {% for b in backends %} {{b}} {% endfor %} {% endif %}