Your First View
A view takes a request and returns a response.
Example
from django.http import HttpResponse
def home(request):
return HttpResponse("Hello Django")Exercise
Return a response.
return ("Hi")
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.