def is_enabled():
enabled = getattr(settings, "<STR_LIT>", True)<EOL>if not enabled:<EOL><INDENT>return False<EOL><DEDENT>if hasattr(mail, '<STR_LIT>'):<EOL><INDENT>return getattr(settings, "<STR_LIT>", False)<EOL><DEDENT>return True<EOL>
Returns ``True`` if bcrypt should be used.