(setting, override=None)
Get setting.

    Get a setting from ``dash.contrib.plugins.url`` conf module, falling
    back to the default.

    If override is not None, it will be used instead of the setting.

    :param setting: String with setting name
    :param override: Value to use when no setting is available. Defaults to
        None.
    :return: Setting value.
Get setting.
Get setting .
def get_setting(setting, override=None):
    """Get setting.

    Get a setting from ``dash.contrib.plugins.url`` conf module, falling
    back to the default.

    If override is not None, it will be used instead of the setting.

    :param setting: String with setting name
    :param override: Value to use when no setting is available. Defaults to
        None.
    :return: Setting value.
    """
    attr_name = 'DASH_PLUGIN_URL_{0}'.format(setting)
    if hasattr(settings, attr_name):
        return getattr(settings, attr_name)
    else:
        if hasattr(defaults, setting):
            return getattr(defaults, setting)
        else:
            return override
def get_setting ( setting , override = None ) : attr_name = 'DASH_PLUGIN_URL_{0}' . format ( setting ) if hasattr ( settings , attr_name ) : return getattr ( settings , attr_name ) else : if hasattr ( defaults , setting ) : return getattr ( defaults , setting ) else : return override