Skip to content

Files

Latest commit

cfd5076 · Jan 26, 2023

History

History

class-29

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 12, 2022
Jan 26, 2023
Jan 26, 2023
Jan 26, 2023
Dec 12, 2022

Django Custom User

Overview

The official Django documentation highly recommends using a custom User model for new projects. Why? Because it's a major pain if you need to add user features down the road.

Some kinds of projects may have authentication requirements for which Django’s built-in User model is not always appropriate. For instance, on some sites it makes more sense to use an email address as your identification token instead of a username.

Class Outline

Learning Objectives

Students will be able to

Describe and Define

  • Django's Auth User model
  • AbstractUser class
  • Drawbacks of switching to custom User model later in project.

Execute

  • Subclass AbstractUser
  • Customize User fields
  • Ensure Django Admin panel functionality is maintained