Management Commands¶
Load Seed Data¶
Django management command to load seed data fixtures.
- class confirm.django.management.commands.loadseeddata.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Django management command to load all seed data fixtures.
This command basically wraps Django’s own
loaddatacommand, but instead of explicitly specifying the fixtures, this command will read the fixture names from the project’s settings file.- add_arguments(parser)¶
Add all arguments from Django’s core
loaddatacommand and remove non-required commands.- Parameters:
parser (argparse.ArgumentParser) – The argument parser
- handle(*fixture_labels, **options)¶
Load fixtures.
- Parameters:
fixture_labels (list) – The fixture labels to load
options (dict) – The management command options
- property seed_fixtures¶
The seed fixtures based on the settings
SEED_DATA_FIXTURESvariable.- Returns:
The fixtures paths
- Return type:
generator