The url format should be http://localhost:8000/posts/userprofile/satish28
Where satish28 is the username. user_profile view should be modified so that it takes the username from the url and returns the corresponding user's profile.
If the current user is the one who is requesting user profile, then he can be allowed edit and delete of posts. Other's who come to the page, by clicking on the author, can only view the profile of the author.
The url format should be http://localhost:8000/posts/userprofile/satish28 Where satish28 is the username. user_profile view should be modified so that it takes the username from the url and returns the corresponding user's profile.
If the current user is the one who is requesting user profile, then he can be allowed edit and delete of posts. Other's who come to the page, by clicking on the author, can only view the profile of the author.