from .models import Question
from datetime import date
import json
def index(request):
q = Question(question_text='hello world', pub_date=date.today())
q.save()
x = Question.objects.get(question_text='hello world')
return HttpResponse(x.question_text)