You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
517 B
20 lines
517 B
from django.shortcuts import render |
|
from django.http import HttpResponse |
|
|
|
|
|
# Create your views here. |
|
|
|
def index(request): |
|
return HttpResponse("Hello, Django. U are at the polls index") |
|
|
|
|
|
def detail(request, question_id): |
|
return HttpResponse(f"You're looking at question {question_id}.") |
|
|
|
|
|
def result(request, question_id): |
|
return HttpResponse(f"You're looking at the result of question {question_id}.") |
|
|
|
|
|
def vote(request, question_id): |
|
return HttpResponse(f"You're voting on question {question_id}")
|
|
|