Concept Flow - login_required decorator
User sends request to view
login_required checks if user is authenticated
Allow access
View executes
The login_required decorator checks if the user is logged in before allowing access to a view. If not logged in, it redirects to the login page.