A
A
andreyAmaterasu2020-07-15 17:04:52
Django
andreyAmaterasu, 2020-07-15 17:04:52

How to pass data from one Django app to another?

The bottom line is that I have an authorization page, the user enters a login and password, if everything is correct, then there is a transition to another page, where I load data from the database for this user using the specified login. I have now done so that I pass the specified login through the query string parameters, everything works, but in this way the login is specified in the address bar. Is it possible to somehow pass the login so that the user does not have access to it in the address bar?5f0f0c16b3c01905924045.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
d-sem, 2020-07-15
@andreyAmaterasu

Pass not a login, but an access token issued after authorization. Pass through cookies or headers.

D
Dr. Bacon, 2020-07-15
@bacon

https://docs.djangoproject.com/en/3.0/ref/request-...

V
Vadim Shatalov, 2020-07-16
@netpastor

https://docs.djangoproject.com/en/2.2/topics/http/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question