How can I show any user his/her username when logged in at "next.html" page ???
def signin(request):
if request.method != 'POST':
return render(request, 'login.html', {'error': 'Email or Password is incorrect'})
user_profile = User_account.objects.filter(e_mail = request.POST['user_email'], passwd = request.POST['password'])
if user_profile:
return render(request, 'next.html', {'name' :User_account.objects.**WHAT SHOULD I WRITE HERE???** } )
else:
return render(request, 'login.html', {'error': 'Email or Password is incorrect'})