code: def get_configuration_value_for_site(site, key, default=None):
      
      if hasattr(site, 'configuration'):
          return site.configuration.get_value(key, default)
      return default
docs: Get the site configuration value for a key, unless a site configuration does not exist for that site.
  
      Useful for testing when no Site Configuration exists in edx-enterprise or if a site in LMS doesn't have
      a configuration tied to it.
  
      :param site: A Site model object
      :param key: The name of the value to retrieve
      :param default: The default response if there's no key in site config or settings
      :return: The value located at that key in the site configuration or settings file.