こんにちは、django テンプレートで forloop を使用しています
{% for image in images %}
{% endfor %}
10ステップ実行します
しかし、私は5番目のステップをスキップして残りのために実行したいのですが、どうすればこれを行うことができるか提案してください...
{% for image in images %}
{% if forloop.counter != 5 %}
...
{% endif %}
{% endfor %}
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#for
{% for image in images %}
{% if forloop.counter0 != 5 %}
...
{% endif %}
{% endfor %}
これは私のために働く