class home(APIView):
    renderer_classes = TemplateHTMLRenderer,
permission_classes = IsAuthenticated,

def get(self, request, format=None):
    template = get_template(template_name='myapp/template.html')
return Response({}, template_name=template.template.name)
Как использовать login_required в режиме ожидания django