code: def _getsetting(setting, default):
      
  
      setting = _DJANGO_SETTING_PREFIX + setting
  
      try:
          return getattr(settings, setting)
      except:
          return default
docs: Get `setting` if set, fallback to `default` if not
  
      This method tries to return the value of the specified setting from Django's
      settings module, after prefixing the name with _DJANGO_SETTING_PREFIX. If
      this fails for any reason, the value supplied in `default` will be returned
      instead.