def _get_key_from_module(mod, key, default):
    if hasattr(mod, key):
        value = getattr(mod, key, default)
    else:
        value = getattr(mod, 'LEONARDO_%s' % key.upper(), default)
    return value
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/utils/settings.py/_get_key_from_module/original