title: I am not sure is the post function is error
body: <p>When I press the button to post something, it will return me to the main page, not stay in the forum page and show me what I just post.</p>
  <p>Here is the view.py</p>
  <pre><code>def forum(request):
  profile = Profile.objects.all()
  if request.method == &quot;POST&quot;:
      user = request.user
      image = request.user.profile.image
      content = request.POST.get('content','')
      post = Post(user1=user, post_content=content, image=image)
      post.save()
      alert = True
      return render(request, &quot;forum.html&quot;, {'alert':alert})
  posts = Post.objects.filter().order_by('-timestamp')
  return render(request, &quot;forum.html&quot;, {'posts':posts})
  def discussion(request, myid):
  post = Post.objects.filter(id=myid).first()
  replies = Replie.objects.filter(post=post)
  if request.method==&quot;POST&quot;:
      user = request.user
      image = request.user.profile.image
      desc = request.POST.get('desc','')
      post_id =request.POST.get('post_id','')
      reply = Replie(user = user, reply_content = desc, post=post, image=image)
      reply.save()
      alert = True
      return render(request, &quot;discussion.html&quot;, {'alert':alert})
  return render(request, &quot;discussion.html&quot;, {'post':post, 'replies':replies})
  </code></pre>
  <p>Here is the html5 code, I don't know why I cannot post the full html code, it tell me there is an error.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="modal fade" id="questions" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"&gt;
      &lt;div class="modal-dialog" role="document"&gt;
        &lt;div class="modal-content"&gt;
          &lt;div class="modal-header"&gt;
            &lt;h5 class="modal-title" id="exampleModalLabel"&gt;Modal title&lt;/h5&gt;
            &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
              &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
            &lt;/button&gt;
          &lt;/div&gt;
          {% if user.is_authenticated %}
          &lt;div class="modal-body"&gt;
            &lt;form action="/" method="POST"&gt; {% csrf_token %}
            &lt;div class="form-group"&gt;
              &lt;label for="exampleFormControlTextarea1"&gt;Post Your Question Here&lt;/label&gt;
              &lt;textarea class="form-control" id="content" name="content" rows="3"&gt;&lt;/textarea&gt;
            &lt;/div&gt;
            &lt;/form&gt;
          &lt;/div&gt;
          {% else %}
          &lt;h3&gt;Please Login to post&lt;/h3&gt;
          {% endif %}
          &lt;div class="modal-footer"&gt;
            &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;
            &lt;button type="submit" class="btn btn-primary"&gt;Post&lt;/button&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>