Expected view to be called with a URL keyword argument named “pk” December 23, 2023 by Tarik View functions are called with the request and the arguments from the URL. So pass them: response = view(request, pk=1)