{% for some_item, some_another_item, again_some_another_item_with_long_name in items %}
Как я могу разбить его?
Использование \ или просто расщепление не работает.
Ответ 1
Если вы действительно хотите сохранить эти неприятные длинные имена, я бы сделал следующее:
{% for a, b, c in items %}
{% with a as some_item %}
{% with b as some_another_item %}
{% with c as again_some_another_item_with_long_name %}
bla bla bla ..
{% endwith %}
{% endwith %}
{% endwith %}
{% endfor %}