title: Django: Pagination without changing url?
body: <p>I learned the pagination basics for Django from this link:
  <a href="https://simpleisbetterthancomplex.com/tutorial/2016/08/03/how-to-paginate-with-django.html" rel="nofollow noreferrer">https://simpleisbetterthancomplex.com/tutorial/2016/08/03/how-to-paginate-with-django.html</a></p>
  
  <p>However! the only problem I have is that I want to paginate without changing url.</p>
  
  <p>By that, I mean I need to paginate a table while there are multiple tables in a html page. </p>
  
  <p>How do i paginate only one table???</p>
  
  <p>My code:</p>
  
  <p>This is the basic structure of the html template:</p>
  
  <pre><code>                  ...      
                      &lt;table class="uk-table uk-table-striped"&gt;
                          &lt;tbody&gt;
                              {% for post_status in post.statusPage %}
                              &lt;tr&gt;
                                  &lt;td&gt;{{ post_status.status_time }}&lt;/td&gt;
                                  &lt;td&gt;{{ post_status.repost_count }}&lt;/td&gt;
                                  &lt;td&gt;{{ post_status.comment_count }}&lt;/td&gt;
                                  &lt;td&gt;{{ post_status.like_count }}&lt;/td&gt;
                              &lt;/tr&gt;
                              {% endfor %}
                          &lt;/tbody&gt;
                      &lt;/table&gt;
                      {% if post.statusPage.has_other_pages %}
                          &lt;ul class="uk-pagination uk-flex-center" uk-margin&gt;
                              {% if post.statusPage.has_previous %}
                                  &lt;li&gt;&lt;a href="#"&gt;&lt;span uk-pagination-previous&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                              {% else %}
                                  &lt;li&gt;&lt;a&gt;&lt;span uk-pagination-previous&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                              {% endif %}
  
                              {% for i in post.statusPage.paginator.page_range %}
                                  {% if post.statusPage.number == i %}
                                      &lt;li class="uk-active"&gt;&lt;span&gt;{{ i }}&lt;/span&gt;&lt;/li&gt;
                                  {% else %}
                                      &lt;li&gt;&lt;a href="#"&gt;{{ i }}&lt;/a&gt;&lt;/li&gt;
                                  {% endif %}
                              {% endfor %}
                              {% if post.statusPage.has_next %}
                                  &lt;li&gt;&lt;a href="#"&gt;&lt;span uk-pagination-next&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                              {% else %}
                                  &lt;li&gt;&lt;a&gt;&lt;span uk-pagination-next&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                              {% endif %}
                          &lt;/ul&gt;
                      {% endif %}
  </code></pre>
  
  <p>In side the template, there are multiple post objects</p>
  
  <pre><code>post
  </code></pre>
  
  <p>Each post has its own table and paginator:</p>
  
  <pre><code>post.statusPage
  </code></pre>
  
  <p>is the page object of the post.</p>