Recall & Review
beginner
What is the purpose of the User model in Django?
The User model in Django represents a person who can log into the website. It stores information like username, password, email, and permissions.
Click to reveal answer
intermediate
Name two ways to customize the User model in Django.
You can customize the User model by either extending AbstractUser or by creating a completely new model using AbstractBaseUser.
Click to reveal answer
beginner
What fields are included by default in Django's built-in User model?
The default User model includes username, password, email, first_name, last_name, is_staff, is_active, and date_joined.
Click to reveal answer
beginner
How does Django handle password security in the User model?
Django stores passwords in a hashed format using strong algorithms, so the actual password is never saved in plain text.
Click to reveal answer
intermediate
What is the role of the AUTH_USER_MODEL setting in Django?
AUTH_USER_MODEL tells Django which User model to use. It allows you to replace the default User model with a custom one.
Click to reveal answer
Which Django model is used by default to represent users?
✗ Incorrect
The default user model is django.contrib.auth.models.User.
Which method is recommended to create a fully custom user model?
✗ Incorrect
Extending AbstractBaseUser allows full control over the user model.
What does the is_staff field indicate in the User model?
✗ Incorrect
is_staff means the user can access the Django admin interface.
How are passwords stored in Django's User model?
✗ Incorrect
Passwords are hashed securely to protect user data.
What setting do you change to use a custom User model?
✗ Incorrect
AUTH_USER_MODEL tells Django which user model to use.
Explain the difference between extending AbstractUser and AbstractBaseUser when customizing the User model.
Think about how much you want to change the default user.
You got /4 concepts.
Describe how Django ensures password security in the User model.
Focus on how passwords are saved safely.
You got /4 concepts.