from django.http import JsonResponse from polls.models import * #... def get_questions(request): jsonData = list( Question.objects.all().values() ) return JsonResponse({ "status": "OK", "questions": jsonData, }, safe=False)