Can I use the login_required decorator for the entire application? When I say "application", I mean this in the sense of django, that is, a lot of URLs and views, and not the whole project.
login_required
Yes, you must use middleware.
Try looking at solutions that have some differences:
I think that you are looking for this fragment containing the required middleware login.
This is an old question. But here goes:
Enable Django Decorator
This is a replacement for include in URLConf. Pefect to use login_required for the whole application.
include
Source: https://habr.com/ru/post/1304433/More articles:Memory Bandwidth Performance for Modern Machines - performanceIs there something like clock () that works better for parallel code? - parallel-processingvalue of `$ / i` in regular expressions - phpThe fastest way to iterate over a collection of objects - c ++The effect of changing the IP address of outgoing IP packets from my network - networkingTemplate for managing the number of links and objects - c #Actual Recording Duration versus MIDI Duration - midiHow can I create a unique identifier using a hash in Perl? - uniqueidentifierHow to make an HTTP request in a separate thread with a timeout? - multithreadingHow can I get the indexPath of a UIButton in a custom tableViewCell? - iphoneAll Articles