'Allows code to get a setting (like, for example, STORAGE_ENGINE)'

def _get_setting(self, setting_name):

    setting_name = setting_name.upper()
    connection = self._get_connection()
    if self._is_multidb():
        return connection.settings_dict[setting_name]
    else:
        return getattr(settings, ('DATABASE_%s' % setting_name))
