Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Model In View Django


from .models import Question

def index(request):
    
    x = Question.objects.all()
    y = x[0]. question_text
    return HttpResponse(x)
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #Model #In #View #Django
ADD COMMENT
Topic
Name
7+7 =