def get(self, section, key=None, default=None):
        """Gets a setting from the config file."""
        if key is None:
            return getattr(self, section)
        env_var = self.find_env_variable(section, key)
        if env_var is not None:
            return env_var
        if (
            hasattr(self, section)
            and key in self[section]
            and self[section][key] is not None
        ):
            return self[section][key]
        return default
Gets a setting from the config file.
core/config/config.py