I know that I can use the drf serializer from django views, but the set of queries, setting up pagination are duplicated in drf and django views.
Is it possible to reuse a viewet to generate json data and include it in a regular django response?
Update:
those. is it possible to call ViewSet.as_view()(self.request) from a django view?
this is not documented, so I wonder about the lower bounds of this approach .. and if it is doable ..
source share