django_program.config_loader

TOML loader for conference bootstrap configuration.

Loads and validates a conference TOML file (see conference.example.toml) so that conferences, sections, ticket types, add-ons, sponsor levels, and vouchers can be created programmatically.

Functions

load_conference_config(path)

Load and validate a conference TOML configuration file.

django_program.config_loader.load_conference_config(path)[source]

Load and validate a conference TOML configuration file.

Parameters:

path (str | Path) – Filesystem path to the TOML file.

Return type:

dict[str, Any]

Returns:

The conference mapping from the parsed TOML, with native types (datetime.date for dates, Decimal for prices). Slugs are auto-generated from name when not explicitly provided.

Raises: