angee.compose.autoconfig
Autoconfig loading plus settings fragments required by the composer app.
_YamlconfErrorHandler
class _YamlconfErrorHandler(logging.Handler)Turn yamlconf logged errors into composition failures.
emit
def emit(record: logging.LogRecord) -> NoneRaise for every yamlconf error record.
fail_on_yamlconf_errors
@contextmanager
def fail_on_yamlconf_errors() -> Iterator[None]Raise ImproperlyConfigured when django-yamlconf logs an error.
setting_name
def setting_name(attribute_name: str) -> strReturn the top-level Django setting name for one yamlconf attribute.
is_setting_name
def is_setting_name(name: str) -> boolReturn whether name is a top-level Django setting (public, all-caps).
The one owner of the rule that decides which namespace entries the composer treats as Django settings. The YAMLCONF_ATTRIBUTES provenance sentinel is exported alongside settings but is not itself a setting name, so callers that carry it forward OR it in explicitly.
AutoConfig
class AutoConfig()Apply addon autoconfig modules to a settings namespace.
__init__
def __init__(namespace: MutableMapping[str, Any], *,
reserved_settings: frozenset[str]) -> NoneStore the settings namespace being mutated.
update_app
def update_app(app_config: AppConfig) -> NoneApply one app config's optional autoconfig module.
SETTINGS
Django settings contributed when the composer is installed.