Django HttpResponse and JsonResponse
1. HttpResponse After the Django server receives the request sent by the client, it will encapsulate the submitted data into an HttpRequest object and pass it to the view function. Then the view function also needs to return a response…