title: How to preserve form fields in django after unsuccessful submit?
body: <p>Code from views.py:</p>
  
  <pre><code>def feedback(request):
      if request.method == "POST":
          form = CommentForm(request.POST)
          if form.is_valid():
              form.save()
          else:
              print("form.errors:", form.errors)
      else:
          form = CommentForm()
      articles = Comment.objects.all()
      ResponseDict = {"articles": articles, "form": form}
      return render_to_response("feedback.html", ResponseDict, 
          context_instance = RequestContext(request))
  </code></pre>
  
  <p>I've tried this and several modifications from answers to similar questions, but nothing works. When I press submit button, all form fields in html become empty.</p>
  
  <p>EDIT: code from feedback.html:</p>
  
  <pre><code>{% extends "base.html" %}
  {% block main %}
      &lt;table&gt;
          &lt;form action="/feedback/" method="POST"&gt;
              {% csrf_token %}
              &lt;div class="article"&gt;
                  &lt;label for="name"&gt;
                      Ваше имя:
                  &lt;/label&gt;
                  &lt;br /&gt;
                  &lt;input type="text" name="name" id="name" size="40" class="inputbox" value="" /&gt;
                  &lt;br /&gt;
                  &lt;!-- class="inputbox required" --&gt;
                  &lt;textarea class="WithoutTinymce" cols="50" rows="10" name="text" id="text"&gt;&lt;/textarea&gt;
                  &lt;br /&gt;
                  &lt;input type="submit" name="submit" value="Отправить"&gt;
              &lt;/div&gt; &lt;!-- /article --&gt;
          &lt;/form&gt;
      &lt;/table&gt;
      {% include "articles.html" %}
  {% endblock %}
  </code></pre>
  
  <p>I can also paste code from base.html if needed.</p>
  
  <p>EDIT2: minimized code from base.html:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"&gt;
  ...
  &lt;body id="body-id" onload="loaded()"&gt;
  
  &lt;!-- Main --&gt;
  &lt;div id="main" class="box"&gt;
      &lt;div id="page" class="box"&gt;
          &lt;div id="page-in" class="box"&gt;
              &lt;!-- Content --&gt;
              &lt;div id="content"&gt;
                  {% block main %}
                  {% endblock %}
                  &lt;hr class="noscreen" /&gt;
              &lt;/div&gt; &lt;!-- /content --&gt;
          &lt;/div&gt; &lt;!-- /page-in --&gt;
      &lt;/div&gt; &lt;!-- /page --&gt;
  &lt;/div&gt; &lt;!-- /Main --&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>