Management Commands¶
Load Demo Data¶
Django management command to load demo data fixtures.
- class confirm.django.management.commands.loaddemodata.Command(stdout=None, stderr=None, no_color=False, force_color=False)¶
Django management command to load all demo data fixtures.
This command basically wraps Django’s own
loaddata
command, 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
loaddata
command and remove non-required commands.- Parameters:
parser (argparse.ArgumentParser) – The argument parser
- property demo_fixtures¶
The demo fixtures based on the settings
DEMO_DATA_FIXTURES
variable.- Returns:
The fixtures paths
- Return type:
generator
- handle(*fixture_labels, **options)¶
Load fixtures.
- Parameters:
fixture_labels (list) – The fixture labels to load
options (dict) – The management command options