[Fixed]-How can we return simple text from a django function based view

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"})
👤Sayse

Leave a comment