Python - import 'JsonResponse' -- django

Import JsonResponse

To import JsonResponse, Add the following line to the top of your code.

from django.http import JsonResponse

 

For more information about JsonResponse:
Django JsonResponse