title: how to do ajax pagination in Django?
body: <p>!! I have a model named <strong>blog</strong> !!</p>
  
  <pre><code>class blog(models.Model):
      image          = models.ImageField(upload_to='Media/awards')
      title          = models.CharField(max_length=255,blank=True)
      content        = models.TextField(blank=True)
  </code></pre>
  
  <p>and in the frontend I have</p>
  
  <pre><code>&lt;div class="col-md-6" id= "mydiv"&gt;
  &lt;div&gt;
  
   &lt;!-- pagination design start --&gt;
              &lt;div class="blog_bottom_pagination"&gt;
                &lt;div class="counter"&gt;/&lt;/div&gt;
                &lt;button class="paginate left"&gt;&lt;i class="fas fa-angle-left"&gt;&lt;/i&gt;&lt;/button&gt;
                &lt;button class="paginate right"&gt;
                  &lt;i class="fas fa-angle-right"&gt;&lt;/i&gt;
                &lt;/button&gt;
              &lt;/div&gt;
    &lt;!-- pagination design end --&gt;
  
  </code></pre>
  
  <p>I don't find any reference how i implement pagination without page refresh and render two data at a time in that div section. and paginate right and left by the button for getting next two data and  will replace those previous data in that div.... thank you in advance</p>