fetch json array from mysql django code example
Example: fetch json array from mysql django
#djanfo #myswl #json
fetch json array from django mysql
--------------------------------
def home(request):
result = <model name>.objects.values()
return HttpResponse(json.dumps(list(result)))