Getting ‘str’ object has no attribute ‘get’ in Django

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)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)