How can I get the username of the logged-in user in Django?

前端 未结 6 1609
后悔当初
后悔当初 2020-12-13 03:45

How can I get information about the logged-in user in a Django application?

For example:

I need to know the username of the logged-in user to say who posted

6条回答
提交回复
热议问题