django_program.conference.management.commands.bootstrap_conference

Management command to bootstrap a conference from a TOML configuration file.

Classes

Command

Bootstrap a conference from a TOML configuration file.

class django_program.conference.management.commands.bootstrap_conference.Command[source]

Bases: BaseCommand

Bootstrap a conference from a TOML configuration file.

Parses the given TOML file, validates its structure, and creates (or updates) the corresponding Conference, Section, TicketType, and AddOn database records.

Usage:

manage.py bootstrap_conference --config conference.toml
manage.py bootstrap_conference --config conference.toml --update
manage.py bootstrap_conference --config conference.toml --dry-run
help = 'Create or update a conference and its sections from a TOML config file.'
add_arguments(parser)[source]

Define the command-line arguments accepted by this command.

Parameters:

parser (CommandParser) – The argument parser to configure.

Return type:

None

handle(*args, **options)[source]

Execute the bootstrap command.

Parameters:
  • *args (Any) – Positional arguments (unused).

  • **options (Any) – Parsed command-line options.

Return type:

None