Skip to content

Glossary: Django Beyond the Basics

get_user_model()

A function that returns the project's user model. Use it instead of importing `User` directly in a project with a custom user model.

Where the book teaches it

Related terms

Custom user modelAUTH_USER_MODEL