from .models import Question def index(request): x = Question.objects.all() y = x[0]. question_text return HttpResponse(x)