Login required in django

Good day!
Trying to find how to do in django need to log in to everything except the login page, but never found.
Who can tell me something?
Thank you!
October 8th 19 at 02:39
3 answers
October 8th 19 at 02:41
Yes) later found) a solution came to mind initially, but I thought, hoped that you can do to make it more simple. - Layne.Fay commented on October 8th 19 at 02:44
October 8th 19 at 02:43
What's difficult adding a decorator to the function? If you want to add to many functions, you can use class based views to create a base class and wrap the decorator method dispatch. The rest of the view function, respectively, inherit from this class.
October 8th 19 at 02:45
the decorator @login_required

Find more questions by tags Django