def _create_user(self, username, email, password, is_staff,<EOL>is_superuser, sync_emailaddress=True, **extra_fields):
now = timezone.now()<EOL>if not username:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>email = self.normalize_email(email)<EOL>user = self.model(username=username, email=email,<EOL>is_staff=is_staff, is_active=True,<EOL>is_superuser=is_superuser, last_login=now,<EOL>date_joined=now, **extra_fields)<EOL>user.set_password(password)<EOL>user.save(using=self._db, sync_emailaddress=sync_emailaddress)<EOL>return user<EOL>
Creates and saves a User with the given username, email and password.