You can not pass directly str as a django response .
You must use
from django.http import HttpResponse
if you want to render string data as django view response.
have a look django.http.HttpResponse
return HttpResponse(resp)
You can not pass directly str as a django response .
You must use
from django.http import HttpResponse
if you want to render string data as django view response.
have a look django.http.HttpResponse
return HttpResponse(resp)