G
G
guit242021-12-26 22:58:06
Django
guit24, 2021-12-26 22:58:06

What is stored inside request in django?

what is stored inside request.. I know that there is user there, inside user there is an is_authenticated method and the username attribute, and what else is hidden by request.user , how to find the full list?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-12-26
@guit24

Initially request only store the request . All other fields add middleware. Specifically, user adds an AuthenticationMiddleware. Accordingly, there is no list, you need to look at the documentation of the connected middleware.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question