In Django Rest Framework, how can I view paginated data with TemplateHTMLRenderer?
<p>I'm using Django Rest Framework and I'm trying to convert from the API view to a TemplateHTMLResponse using the <a href="http://www.django-rest-framework.org/topics/html-and-forms/" rel="nofollow noreferrer">doc example</a>.  I was able to complete most of it and got the template loaded and passing all the data, however documentation on the HTML side of the process is scarce.</p>

<p>The problem I am having is the results not being paginated. I am able to access and iterate over all the data, but I need the pagination for organization. </p>

<p>views.py.</p>

<pre><code>class BoxViewSet(viewsets.ModelViewSet):

    queryset = Uploadobject.objects.all().exclude(verified=False)
    serializer_class = BoxSerializer
    permission_classes = (permissions.IsAuthenticatedOrReadOnly,
                            IsBox)

    #renderer_classes = (renderers.TemplateHTMLRenderer)
    def list(self, request):
        queryset = Uploadobject.objects.all().exclude(verified=False)


        page = self.paginate_queryset(queryset)
        if page is not None:
            serializer = self.get_serializer(page, data=request.data)

            if serializer.is_valid():

                serdata = self.get_paginated_response(serializer.data)
                data= {'objects': queryset,
                    'serializers': serializer}
                return Response(data, template_name='restframework/objectlist.html')
</code></pre>

<p>objectlist.html</p>

<pre><code>{% if serializers %}  
{{ serializers }}
{% endif %}

  {% if objects %}
    {% for object in objects %}
        &lt;ul&gt;
            &lt;li&gt;{{ object.Title }}&lt;/li&gt;
            &lt;li&gt;{{ object.Category }}&lt;/li&gt;
        &lt;/ul&gt;
    {% endfor %}

    {% else %}
        &lt;p&gt;No objects.&lt;/p&gt;
    {% endif %}
</code></pre>

<p>I have tried many things including the ListModelMixin and creating a custom pagination script as recommended by the <a href="http://www.django-rest-framework.org/api-guide/pagination/" rel="nofollow noreferrer">pagination docs</a>, but nothing seems to pass through. I read that there is way to paginate from Django, but I think keeping all the pagination in Django Rest Framework will be simpler. From what I can tell I have the correct backend data and the HTML  just needs to be corrected. So to sum it up, what is the easiest way to display all my model data in a paginated setup on my template page?</p>