T
T
timur_khabibullin2016-06-03 11:01:24
Programming
timur_khabibullin, 2016-06-03 11:01:24

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

1 answer(s)
V
Vladimir Kuts, 2016-06-03
@timur_khabibullin

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 question

Ask a Question

731 491 924 answers to any question