Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Return the final values for the items in ``local_conf``.

:raises ImportError: If the Django settings module cannot be imported.
:raises UnsupportedDjangoSettingError: If ``local_conf`` contains a Django
    setting which is not supported.
:raises MissingDjangoSettingsModuleError: If the ``django_settings_module``
    option is not set.
:raises BadDebugFlagError: If Django's ``DEBUG`` is set instead of Paste's
    ``debug``.
:return: ``local_conf`` with its values deserialized from JSON and(more...)

        def resolve_local_conf_options(global_conf, local_conf):
    """
    Return the final values for the items in ``local_conf``.

    :raises ImportError: If the Django settings module cannot be imported.
    :raises UnsupportedDjangoSettingError: If ``local_conf`` contains a Django
        setting which is not supported.
    :raises MissingDjangoSettingsModuleError: If the ``django_settings_module``
        option is not set.
    :raises BadDebugFlagError: If Django's ``DEBUG`` is set instead of Paste's
        ``debug``.
    :return: ``local_conf`` with its values deserialized from JSON and
        variable references resolved
    :rtype: :class:`dict`

    The result also includes the following items:

    - ``DEBUG``: Copied from ``global_conf['debug']``.
    - ``paste_configuration_file``: The path to the PasteDeploy configuration
      file used.

    """
    _validate_debug_data(global_conf, local_conf)
    _require_supported_options_only(local_conf)

    local_conf = dict(local_conf, DEBUG=global_conf['debug'])
    local_conf_resolved = \
        _get_option_values_dereferenced(global_conf, local_conf)
    local_conf_resolved = _get_option_values_parsed(local_conf_resolved)

    # Make the PasteDeploy configuration file path available
    local_conf_resolved['paste_configuration_file'] = \
        global_conf.get('__file__')

    return local_conf_resolved
        


src/d/j/django-pastedeploy-settings-1.0rc2/django_pastedeploy_settings/buildout_options.py   django-pastedeploy-settings(Download)
from deployrecipes import ConfvarsRecipe
 
from django_pastedeploy_settings import resolve_local_conf_options
 
 
    def get_config_variables_from_app_config(app_config):
        variables = resolve_local_conf_options(
            app_config.global_conf,
            app_config.local_conf,
            )