title: Nothing is happened when I put comment button
body: <p>Nothing is happened when I put comment button.I wanna make a page which is shown comment&amp;recomment.I wrote codes in views.py</p>
  
  <pre><code>class DetailView(generic.DetailView):
     model = POST
     template_name = 'detail.html'
  
     def get_context_data(self, **kwargs):
      context = super().get_context_data(**kwargs)
      context['comment_form'] = CommentCreateForm()
      context['recomment_form'] = ReCommentCreateForm()
      return context 
  
  class CommentCreateView(generic.View):
  
      def post(self, request, *args, **kwargs):
          form = CommentCreateForm(request.POST)
          post = POST.objects.get(pk=kwargs['post_pk'])
          if form.is_valid():
              obj = form.save(commit=False)
              obj.target = post
              obj.save()
          return redirect('detail', pk=post.pk)
  
  
  class ReCommentCreateView(generic.View):
      def post(self, request, *args, **kwargs):
          form = ReCommentCreateForm(request.POST)
          comment = Comment.objects.get(pk=kwargs['comment_pk'])
          if form.is_valid():
              obj = form.save(commit=False)
              obj.target = comment
              obj.save()
          return redirect('detail', pk=comment.target.pk)
  </code></pre>
  
  <p>in urls.py</p>
  
  <pre><code>from django.urls import path
  from django.conf import settings
  from . import views
  
  urlpatterns = [
      path('detail/&lt;int:pk&gt;/', views.DetailView.as_view(), name='detail'),
      path('comment/&lt;int:post_pk&gt;/',views.CommentCreateView.as_view(), name='comment'),
      path('recomment/&lt;int:comment_pk&gt;/', views.ReCommentCreateView.as_view(), name='recomment'),
  ]
  </code></pre>
  
  <p>in detail.html</p>
  
  <pre><code>{% load static %}
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;DETAIL&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div id="comment-area"&gt;
  
      {% for comment in post.comment.all %}
      &lt;div class="media m-3"&gt;
          &lt;div class="media-body"&gt;
              &lt;h5 class="mt-0"&gt;
                  &lt;span class="badge badge-primary badge-pill"&gt;{% by_the_time comment.created_at %}&lt;/span&gt;
                  {{ comment.name }}
                  &lt;span class="lead text-muted"&gt;{{ comment.created_at }}&lt;/span&gt;
                  &lt;a href="{% url 'recomment' comment.pk %}"&gt;Recomment&lt;/a&gt;
              &lt;/h5&gt;
              {{ comment.text | linebreaksbr }}
  
              {% for recomment in comment.recomment.all %}
              &lt;div class="media m-3"&gt;
                  &lt;div class="media-body"&gt;
                      &lt;h5 class="mt-0"&gt;
  
                          {{ recomment.name }}
                          &lt;span class="lead text-muted"&gt;{{ recomment.created_at }}&lt;/span&gt;
                      &lt;/h5&gt;
                      {{ recomment.text | linebreaksbr }}
                  &lt;/div&gt;
              &lt;/div&gt;
  
              {% endfor %}
              &lt;form action="{% url 'recomment' comment_pk=comment.id %}" method="post"&gt;
                  {{recomment_form}}
                  {% csrf_token %}
                  &lt;input class="btn btn-primary" type="submit" value="re-comment"&gt;
              &lt;/form&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      {% endfor %}
      &lt;form action="{% url 'comment' post_pk=post.id %}" method="post"&gt;
          {{comment_form}}
          {% csrf_token %}
          &lt;input class="btn btn-primary" type="submit" value="comment"&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>in models.py</p>
  
  <pre><code>class Comment(models.Model):
      name = models.CharField(max_length=100, blank=True)
      text = models.TextField()
      target = models.ForeignKey(POST, on_delete=models.CASCADE)
      created_at = models.DateTimeField(auto_now_add=True)
  
      def __str__(self):
          return self.name
  </code></pre>
  
  <p>When I put comment button, no error happens but same page which is form's content is blank is shown.I wanna show <code>{% for comment in post.comment.all %}</code> ~ <code>{% endfor %}</code>,so I really cannot understand why I cannot do it.I think values are not in model, so I print out <code>print(obj)</code> in CommentCreateView's class, and correctly value is shown in terminal.What is wrong in my code?How should I fix this?</p>