@login_required
Also written: login_required
A decorator that checks a visitor is logged in before the view runs. If they aren't, it sends them to the login page instead.
Also written: login_required
A decorator that checks a visitor is logged in before the view runs. If they aren't, it sends them to the login page instead.