class BooksPage(generic.TemplateView):

    def get(self, request):
        books_list = services.get_books('2009', 'edwards')
return render(request, 'books.html', books_list)
Proper way to consume data from RESTFUL API in django