Skip to content

Glossary: Django Basics

decorator

Also written: decorators

A line starting with `@` just above a function definition that wraps the function with extra behavior that runs first. `@login_required` is one.

Where the book teaches it

Related terms

@login_requiredview