# Path: src/slim/conf.py
# def get_setting(setting, override=None):
#     """
#     Get a setting from ``slim`` conf module, falling back to the default.
# 
#     If override is not None, it will be used instead of the setting.
#     """
#     if override is not None:
#         return override
#     if hasattr(settings, 'SLIM_%s' % setting):
#         return getattr(settings, 'SLIM_%s' % setting)
#     else:
#         return getattr(defaults, setting)


from .conf import get_setting
__title__ = 'slim.settings'
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__copyright__ = '2013-2017 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
    'USE_LOCALEURL',
    'USE_LOCAL_LANGUAGE_NAMES',
    'ENABLE_MONKEY_PATCHING'
)


USE_LOCALEURL = get_setting('USE_LOCALEURL')

# Path: src/slim/conf.py
# def get_setting(setting, override=None):
#     """
#     Get a setting from ``slim`` conf module, falling back to the default.
# 
#     If override is not None, it will be used instead of the setting.
#     """
#     if override is not None:
#         return override
#     if hasattr(settings, 'SLIM_%s' % setting):
#         return getattr(settings, 'SLIM_%s' % setting)
#     else:
#         return getattr(defaults, setting)


# Path: src/slim/settings.py
from .conf import get_setting

__title__ = 'slim.settings'
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__copyright__ = '2013-2017 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
    'USE_LOCALEURL',
    'USE_LOCAL_LANGUAGE_NAMES',
    'ENABLE_MONKEY_PATCHING'
)


USE_LOCALEURL = get_setting('USE_LOCALEURL')

USE_LOCAL_LANGUAGE_NAMES = get_setting('USE_LOCAL_LANGUAGE_NAMES')