title: How do I make my pagination show in Django template?
body: <p>Goodday everyone. I want to add pagination to my home page ('index.html'). I followed the documentation of Django for pagination but I added Bootstrap's pagination to it to give a beautiful outlook.</p>
  
  <p>However, it does show on my home page.</p>
  
  <p>Here is the index.html code </p>
  
  <pre><code>&lt;div class="row"&gt;
              &lt;div class="col-md-12"&gt;
                  {% if post.has_other_pages %}
                      &lt;ul class="pagination"&gt;
                          {% if post.has_previous%}
                              &lt;li class="page-item"&gt;
                                  &lt;a href="?page={{post.previous_page_number}}" class="page-link"&gt;&amp;laquo;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                          {% else %}
                              &lt;li class="page-item disabled"&gt;
                                  &lt;a class="page-link"&gt;&amp;laquo;&lt;/a&gt;
                              &lt;/li&gt;
                          {% endif %}
                          {% for i in post.paginator.page_range %}
                              {% if post.number == i %}
                                  &lt;li class="page-item active"&gt;
                                      &lt;a class="page-link"&gt;{{i}}&lt;/a&gt;
                                  &lt;/li&gt;
                              {% else %}
                                  &lt;li class="page-item"&gt;
                                      &lt;a href="?page={{i}}"class="page-link"&gt;{{i}}&lt;/a&gt;
                                  &lt;/li&gt;
                              {% endif %}
                          {% endfor %}
                          {% if post.has_next%}
                              &lt;li class="page-item"&gt;
                                  &lt;a href="?page={{post.next_page_number}}" class="page-link"&gt;&amp;raquo;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                          {% else %}
                              &lt;li class="page-item disabled"&gt;
                                  &lt;a class="page-link"&gt;&amp;raquo;&lt;/a&gt;
                              &lt;/li&gt;
                          {% endif %}
                      &lt;/ul&gt;
                  {% endif %}
              &lt;/div&gt;
  
      &lt;/div&gt;
  </code></pre>
  
  <p>This is the protion that contains the pagination. 
  Here is my views.index</p>
  
  <pre><code>def index(request):
      post = Post.objects.all()
      paginator = Paginator(post, 3)
      page = request.GET.get('page')
      page_post = paginator.get_page(page)
  
      context = {
          'post': page_post
      }
      return render(request, 'blog/index.html', context)
  </code></pre>
  
  <p>What am I doing wrong please?</p>