backend/users/models.py
def _create_user(self, email=None, password=None, **extra_fields):
        """
        Create and save a user with the given email and password.
        """
        if not email:
            raise ValueError('The given email must be set')
        email = self.normalize_email(email)
        user = self.model(email=email, **extra_fields)
        user.set_password(password)
        user.save(using=self._db)
        return user

        Create and save a user with the given email and password.
        
Create and save a user with the given email and password.
Create and save a user with the given email and password .
def _create_user(self, email=None, password=None, **extra_fields):
        if not email:
            raise ValueError('The given email must be set')
        email = self.normalize_email(email)
        user = self.model(email=email, **extra_fields)
        user.set_password(password)
        user.save(using=self._db)
        return user
def _create_user ( self , email = None , password = None , ** extra_fields ) : if not email : raise ValueError ( 'The given email must be set' ) email = self . normalize_email ( email ) user = self . model ( email = email , ** extra_fields ) user . set_password ( password ) user . save ( using = self . _db ) return user
Create and save a user with the given email and password.
Create and save a user with the given email and password .
"""
        Create and save a user with the given email and password.
        """
self
email
password