title: Unclosed for tag in django. Looking for one of: empty, endfor
body: <p>The error references <code>{% for film in form %}</code> not being closed in: form-template.html:</p>
  
  <pre><code>{% for field in form %}
  
  {{field.errors}}
  
  &lt;label&gt;{{ field.label_tag }}&lt;/label&gt;
  {{ field }}
  
  {$ endfor %}
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/nultQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nultQ.png" alt="enter image description here"></a></p>
  
  <p>My comment_form.html:</p>
  
  <pre><code>&lt;form action="" method="post"&gt;
      {$ csrf_token %}
      {% include 'films/form-template.html' %}
      &lt;button type="submit"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>urls.py:</p>
  
  <pre><code>app_name = 'films'
  
  urlpatterns = [
      path('', views.IndexView.as_view(), name='index'),
      # path('&lt;int:film_id&gt;/comment', views.add_comment, name='add_comment'),
      path('&lt;int:pk&gt;', views.DetailView.as_view(), name='detail'),
      path('&lt;int:film_id&gt;/add/$', views.CommentCreate.as_view(), name='add_comment'),
  ]
  </code></pre>