전체 코드 내용 from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager from django.contrib.auth.models import PermissionsMixin from django.core.mail import send_mail from django.db import models from django.utils import timezone from django.utils.translation import gettext_lazy as _ class UserManager(BaseUserManager): use_in_migrations = True def _create_user(self, email, password, **extra_fields): if not email: raise ValueError(‘이메일을 설정해야 합니다’) email = self.normalize_email(email) user = self.model(email=email, **extra_fields) user.set_password(password) … Read more