Switch to JsonResponse
Use the new JsonResponse class, rather than HttpResponse