Python

Python

Made by DeepSource

HttpResponse() returns application/json content type PYL-R5102

Anti-pattern
Major

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