1👍
Every django view must return a http response, You appear to be trying to return json, so you should use a JsonResponse
from django.http import JsonResponse
return JsonResponse({"key":"value"})
Source:stackexchange.com
1👍
Every django view must return a http response, You appear to be trying to return json, so you should use a JsonResponse
from django.http import JsonResponse
return JsonResponse({"key":"value"})