'Paginates the results appropriately.
In case someone does not want to use Django\'s built-in pagination, it
should be a simple matter to override this method to do what they would
like.'

def build_page(self):

    try:
        page_no = int(self.request.GET.get(u'page', 1))
    except (TypeError, ValueError):
        raise Http404(u'Not    a    valid    number    for    page.')
    if (page_no < 1):
        raise Http404(u'Pages    should    be    1    or    greater.')
    start_offset = ((page_no - 1) * self.results_per_page)
    self.results[start_offset:(start_offset + self.results_per_page)]
    paginator = Paginator(self.results, self.results_per_page)
    try:
        page = paginator.page(page_no)
    except InvalidPage:
        raise Http404(u'No    such    page!')
    return (paginator, page)
