def create_inactive_user(self, username, email, password,
                             site, send_email=True):
        new_user = User.objects.create_user(username, email, password)
        new_user.is_active = False
        new_user.save()

        registration_profile = self.create_profile(new_user)

        if send_email:
            registration_profile.send_activation_email(site)

        return new_user
Create a new, inactive ``User``, generate a
dataset/ETHPy150Open nathanborror/django-registration/registration/models.py/RegistrationManager.create_inactive_user