Answer the question
In order to leave comments, you need to log in
How to restrict by url in django?
It is necessary to make a restriction only for authorized url addresses. Ie, for example, to restrict access to /profile/
and all of its descendants only for logged in people. I don’t want to add a decorator for each view, and even worse mixins. If any way to do such restrictions?
Or do you still have to write your own middleware class?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question