title: example template for django rest framework pagination
body: <p>I am trying to use Django REST framework for the first time and looking at the tutorials there is no template examples, What can I use for template? I tried template_name = 'authorListAjax.html' but I get this response <a href="http://imgur.com/fMlyXDN" rel="nofollow">http://imgur.com/fMlyXDN</a></p>
  
  <h1>views.py</h1>
  
  <pre><code>class AccountSerializer(serializers.ModelSerializer):
      class Meta:
          model = Author
          fields = ('subject', 'date', 'time_start')  
  
  class AuthorListAll1(ListAPIView):
      template_name = 'authorListAjax.html'
      queryset = Author.objects.all()
      serializer_class = AccountSerializer
      paginate_by = 2
      paginate_by_param = 'page_size'
      max_paginate_by = 100
  </code></pre>
  
  <h1>urls.py</h1>
  
  <pre><code>url(r'^ajax/list/$', AuthorListAll1.as_view(), name='ajax_list'),
  </code></pre>