You can use the redirect() function in a number of ways. By passing some object; that object’s get_absolute_url() method will be called to figure out the redirect URL: from django.shortcuts import redirect def my_view(request): ... object = MyModel.o…