title: Pagination of Django generic ListView does not work
body: <p>I am new to Django and currently I am trying to integrate a webscraping backend code to a django project. While displaying my results from the webscraping, I am unable to paginate my results page which is a Django ListView. Setting paginate_by under my ListView is not working. Any help is appreciated. Thank you. Below are some of my code:</p>
  
  <p><strong>views.py (paginate_by = 5 is not working)</strong></p>
  
  <pre class="lang-py prettyprint-override"><code>class PostListView(ListView):
      model = ResultsTable
      template_name = 'app/results.html'
      paginate_by = 5
  
      def get_queryset(self):
          return ResultsTable.objects.all()
  
      def post(self, request, *args, **kwargs):
          self.queryset = self.get_queryset()
          global name
          name = request.POST.get('input')
          for i in range(len(singaporews)):
              t = threading.Thread(target=Webscraper, args=[singaporews[i], name, webdriver.Chrome('/Users/angyangcheng/chromedriver')])
              allthreads.append(t)
              t.start()
          for i in allthreads:
              i.join()
          return super(PostListView, self).get(request, *args, **kwargs)
  
      def get(self, request, *args, **kwargs):
          return self.self.response_class(
              request=self.request,
              template=self.get_template_names())
  
      def get_context_data(self, **kwargs):
          context = super(PostListView, self).get_context_data(**kwargs)
          global name
          context = {
              'links' : ResultsTable.objects.all,            
              'name' : name,
              'count' : ResultsTable.objects.all().count()
          }
          return context
  </code></pre>
  
  <p>The code under my post method is mainly my webscraping logic.</p>
  
  <p>results.html (pagination code)</p>
  
  <pre><code>   {% if is_paginated %}
  &lt;div class="pagination"&gt;
      &lt;span class="page-links"&gt;
          {% if page_obj.has_previous %}
              &lt;a href="/cars?page={{ page_obj.previous_page_number }}"&gt;previous&lt;/a&gt;
          {% endif %}
          &lt;span class="page-current"&gt;
              Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
          &lt;/span&gt;
          {% if page_obj.has_next %}
              &lt;a href="/cars?page={{ page_obj.next_page_number }}"&gt;next&lt;/a&gt;
          {% endif %}
      &lt;/span&gt;
  &lt;/div&gt;
     {% endif %}     
  </code></pre>