'Get the value of a setting, or raise KeyError'

def get_setting(self, name):

    if (name == 'ORG_INFO'):
        return json.loads(self.org_info_str)
    if (name == 'SP_ENTITY_ID'):
        return self.entity_id
    if (name == 'SP_PUBLIC_CERT'):
        if self.public_key:
            return self.public_key
        return getattr(settings, 'SOCIAL_AUTH_SAML_SP_PUBLIC_CERT', '')
    if (name == 'SP_PRIVATE_KEY'):
        if self.private_key:
            return self.private_key
        return getattr(settings, 'SOCIAL_AUTH_SAML_SP_PRIVATE_KEY', '')
    other_config = {'GET_ALL_EXTRA_DATA': True, 'TECHNICAL_CONTACT': DEFAULT_SAML_CONTACT, 'SUPPORT_CONTACT': DEFAULT_SAML_CONTACT}
    other_config.update(json.loads(self.other_config_str))
    return other_config[name]
