title: When I use Django to develop a blog, the static html page in the form of some problems
body: <p>How can I get back to the index page after I click on the submit button. I wrote some code he can normally return to the index page but there is no content, that some of the title content and the like</p>
  
  <p>urls:</p>
  
  <pre><code>urlpatterns = [
      url(r'^xadmin/', xadmin.site.urls),
      url(r'^$', index,),
      url(r'^bbs/', index,),
      url(r'^details/(\d+)/$', get_details),
      url(r'^bbs_pub/$', bbs_pub, name='publish'),
      url(r'^bbs_sub/$', bbs_sub, name='sub'),
  ]
  </code></pre>
  
  <p>views:</p>
  
  <pre><code>def bbs_sub(request):
  title = request.POST.get('title')
  contet = request.POST.get('content')
  author = models.BBSuser.objects.get(username='merinw')
  models.BBS.objects.create(
      title=title,
      summary='dsad',
      content=contet,
      author=author,
      view_count = 10
  )
  return render(request,'index.html',)
  </code></pre>
  
  <p>index.html:</p>
  
  <pre><code>&lt;div class="container"style="margin-top: 70px"&gt;
  {% block page-content %}
      &lt;div class="border"&gt;
      &lt;a href="{% url 'publish' %}"&gt;
          &lt;div style="margin-right: 30px; "&gt;
          &lt;span class="glyphicon glyphicon-edit" aria-hidden="false" style="font-size: 40px" &gt;&lt;/span&gt;
      &lt;/div&gt;
      &lt;/a&gt;
      &lt;div class="jumbotron"&gt;
      {% for bbs in bbs_list %}
         &lt;h4&gt; &lt;a href="/details/{{ bbs.id }}" &gt;{{ bbs.title }}&lt;/a&gt;&lt;/h4&gt;
          &lt;br&gt;
          {{ bbs.summary }}
          &lt;hr&gt;
      {% endfor %}
  &lt;/div&gt;
  </code></pre>
  
  <p>publish.html</p>
  
  <pre><code>&lt;form method="post" action="/bbs_sub/" class="editor"&gt;
    {% csrf_token %}
    &lt;label&gt;文章标题
        &lt;input type="text" name="title" class="title"&gt;
    &lt;/label&gt;
  &lt;textarea id="mytextarea" name="content"&gt;&lt;/textarea&gt;
    &lt;input type="submit" value="提交" class="subbtu"&gt;
    {% csrf_token %}
  </code></pre>
  
  <p></p>
  
  <p>When I run the end, the index page is empty，who can give me some suggestions。</p>