Skip to content

Glossary: Django Basics

@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.

Where the book teaches it

Related terms

decoratornext parameterauthentication