1👍
✅
The user from your view is clashing with the logged in user from the auth context processor. You can fix it by choosing a different variable name for the user in your view.
return render(request, template, {
'other_user': user,
})
Then in your template
{{ other_user }}
0👍
Because you are showing the username
using which account have logged in. So, it will keep showing logged in username unless you log out of that.
- What is the right way to hard-code some methods and fields of particular instances of a model in Django?
- Django CMS initial migration fail
- How to add custom benefit in django-oscar?
- Custom sql in django migration doesn't work
Source:stackexchange.com