There’s no need for a framework since you can do:
values = User.objects.all().values('id', 'username')
results = json.dumps(values)
…or use the builtin JSON serializer. You can also use Paginator to paginate the results.
values = User.objects.all().values('id', 'username')
results = json.dumps(values)
…or use the builtin JSON serializer. You can also use Paginator to paginate the results.
However, I still think that Django should have something like the "JSONResponse mixin example"[1] built-in by default; sometimes you are building a product which is not an API but you still need the occasional RESTful endpoint and, in those cases, something like DRF would be overkill.
[1] https://docs.djangoproject.com/en/1.10/topics/class-based-vi...
Django does plan on bringing DRF's content negotiation into the main framework:
https://www.djangoproject.com/weblog/2015/dec/11/django-awar...