Answer the question
In order to leave comments, you need to log in
How to implement global authorization in django?
I started learning Django using my own small blog as an example. The user is authorized only on the main page and the article page, and on other pages it is displayed that the user is not authorized in the system. How can this problem be solved?
Answer the question
In order to leave comments, you need to log in
Well, they would show how you authorize and how you check authorization.
In a good way, for each view that needs to be shown taking into account authorization, it is necessary to hang an authorization check and a redirect to the login page, if there is none.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question