AbstractBaseUser 모델
AbstractBaseUser 모델 코드- 이메일을 기본 필드로 사용하는 방법 from django.contrib.auth.models import BaseUserManager, PermissionsMixin, AbstractBaseUser from django.db import models class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): user = self.model(email=email, **extra_fields) user.set_password(password=password) user.save(using=self._db) return user class User(Abst..