`HttpResponse()` returns `application/json` content typePYL-R5102
It is recommended to use JsonResponse
to return JSON content.
HttpResponse(content_type='application/json)
can be replaced with just JsonResponse()
.
It is recommended to use JsonResponse
to return JSON content.
HttpResponse(content_type='application/json)
can be replaced with just JsonResponse()
.