N
N
nano_e_t_42016-07-27 16:52:52
Flask
nano_e_t_4, 2016-07-27 16:52:52

How does flask.g work?

Hello everyone Plz tell me the features of
flask.g, namely where the "id records" are
stored I fasten the authorization on the site, using current_user I add the current user to g:
g.user = current_user
when registering). So I do not quite understand where flask stores this number, it seems like flask.g stores data only during the validity period of the request.
Explain plz who knows how
thank you

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question