Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
Get a setting from ``dash.contrib.layouts.bootstrap2`` 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.

        def get_setting(setting, override=None):
    """
    Get a setting from ``dash.contrib.layouts.bootstrap2`` 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.
    """
    if override is not None:
        return override
    if hasattr(settings, 'DASH_LAYOUT_BOOTSTRAP2_{0}'.format(setting)):
        return getattr(settings, 'DASH_LAYOUT_BOOTSTRAP2_{0}'.format(setting))
    else:
        return getattr(defaults, setting)
        


src/d/j/django-dash-0.4.4/src/dash/contrib/layouts/bootstrap2/settings.py   django-dash(Download)
__all__ = ('IMAGE_CHOICES', 'IMAGE_CHOICES_WITH_EMPTY_OPTION')
 
from dash.contrib.layouts.bootstrap2.conf import get_setting
 
IMAGE_CHOICES = get_setting('IMAGE_CHOICES')
IMAGE_CHOICES_WITH_EMPTY_OPTION = get_setting('IMAGE_CHOICES_WITH_EMPTY_OPTION')

src/d/j/django-dash-HEAD/src/dash/contrib/layouts/bootstrap2/settings.py   django-dash(Download)
__all__ = ('IMAGE_CHOICES', 'IMAGE_CHOICES_WITH_EMPTY_OPTION')
 
from dash.contrib.layouts.bootstrap2.conf import get_setting
 
IMAGE_CHOICES = get_setting('IMAGE_CHOICES')
IMAGE_CHOICES_WITH_EMPTY_OPTION = get_setting('IMAGE_CHOICES_WITH_EMPTY_OPTION')