Django got an unexpected keyword argument 'id'
You should fix the view and use the id
argument name instead of person
:
def person_detail(request, id):
Your parameter ?P<id>
in the URL mapping has to match the arguments in the view def person_detail(request, person):
They should both be id
or both person
.