[Answered ]-How do django send ajax response?

2👍

For an ajax response, you should be returning json, the easiest way is to use the JsonResponse class instead of HttpResponse, or set the content_type

HttpResponse("{'result': 'IS_PASS'}", content_type="application/json")

You would need to adjust your success function to access the results, i.e dataArr.result

👤Sayse

Leave a comment