Answer the question
In order to leave comments, you need to log in
How to get user in Django template?
How is it correct to get the username in the template?
So {{ request.user.username }}
or so {{ user.username }}
when connected
'OPTIONS': {
'context_processors': [
'django.template.context_processors.request',
],
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question