from .models import Question import json def index(request): x = Question.objects.filter(id=1) y = x[0].question_text