code: def get(self, request):
          
          sections = self.generate_sections()
  
          if self.paginated:
              p = Paginator(sections, 25)
  
              page = request.GET.get('page')
  
              try:
                  sections = p.page(page)
              except PageNotAnInteger:
                  # If page is not an integer, deliver first page.
                  sections = p.page(1)
              except EmptyPage:
                  # If page is out of range (e.g. 9999), return last page
                  # of results.
                  sections = p.page(p.num_pages)
  
              pageUpper = int(p.num_pages) / 2
  
              try:
                  pageLower = int(page) / 2
              except TypeError:
                  pageLower = -999
          else:
              pageUpper = None
              pageLower = None
  
          context = {
              'sections': sections,
              'page_title': self.generate_page_title(),
              'browse_type': self.browse_type,
              'pageUpper': pageUpper,
              'pageLower': pageLower
          }
  
          return render(
              request,
              self.template_path,
              context
          )
docs: View for HTTP GET method.
  
          Returns template and context from generate_page_title and
          generate_sections to populate template.