Answers for "fetch json array from mysql django"

0

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)))
Posted by: Guest on February-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language