@staticmethod
def get(s, key, default=None):
    """
        Get a settings value from key. Try to get key as it is, transforming to lower case and to upper case. If not
        found, a default value will be returned.

        :param s: Settings module or object.
        :param key: Settings key.
        :param default: Default value.
        :return: Settings value. Default value if key is not found.
        """
    return getattr(s, key, getattr(s, key.lower(), getattr(s, key.upper(),
        default)))
