[Answer]-Request.user not equal to name passed through url

1👍

You did it wrong. request.user is an object, while name is a string.

Rewrite your condition as follows:

if request.user.is_authenticated() and request.user.username == name:

Leave a comment