Tsallaka zuwa abun ciki
Justice Tech School

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

What does a view return?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.