from django.shortcuts import render
from .models import Question, Choice
# Create your views here.

def index(request):

    survs = Question.objects.all()
    
    return render(request, 'index.html', {'survs':survs})
580dcdb8958eae676df9eb0dde79b63aa59c0f20
<mask token>

<mask token>


def index(request):
    survs = Question.objects.all()
    return render(request, 'index.html', {'survs': survs})

from django.shortcuts import render
from .models import Question, Choice


def index(request):
    survs = Question.objects.all()
    return render(request, 'index.html', {'survs': survs})

from django.shortcuts import render
from .models import Question, Choice
# Create your views here.

def index(request):

    survs = Question.objects.all()
    
    return render(request, 'index.html', {'survs':survs})