私は Django の初心者で、このYouTube チュートリアルを使用してブログを作成しています。以下のコード行は、ブログ本文の最後にクリック可能なタグのリストを追加します。
<div class="tags">
{% for tag in post.tags.all %}
<a href="blog/tag{{tag}}" >{{tag}}</a>
{% if not forloop.last %},{% endif %}
{{% endfor %}}
</div>
ただし、2 行目で次のエラーが発生します。
TemplateSyntaxError at /blog/
Could not parse the remainder: '% endfor %' from '% endfor %'
どんな助けでも大歓迎です。ありがとう。