How to add templates to my DRF Model View Set

Viewed 1177

I have a SubscriberViewSet - Model View Set. I need to create an html template at frontend from Django to serve the requests and show output from the api calls of my SubscriberViewSet

The view I have is

class SubscriberViewSet(ModelViewSet):
  serializer_class = SubscribersSerializer
  queryset = Subscriber.objects.all()
  permission_classes = (IsAuthenticated,)

What I want now is to build a template view in Django to serve requests to this Subscriber View set

2 Answers
Related