Tsallaka zuwa abun ciki
Justice Tech School

Redirects

redirect sends the browser elsewhere.

Example
from django.shortcuts import redirect

def old(request):
    return redirect("home")

Exercise

Send elsewhere.

return ("home")

Quiz Test

What status does redirect use?

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