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 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:
- Return type:
- Returns:
The
conferencemapping from the parsed TOML, with native types (datetime.datefor dates,Decimalfor prices). Slugs are auto-generated fromnamewhen not explicitly provided.- Raises:
FileNotFoundError – If path does not exist.
ValueError – If required keys or fields are missing, or the file is not valid TOML.