def is_enabled():
    enabled = getattr(settings, "BCRYPT_ENABLED", True)
    if not enabled:
        return False
    # Are we under a test?
    if hasattr(mail, 'outbox'):
        return getattr(settings, "BCRYPT_ENABLED_UNDER_TEST", False)
    return True
Returns ``True`` if bcrypt should be used.
dataset/ETHPy150Open dwaiter/django-bcrypt/django_bcrypt/models.py/is_enabled