class documentation

Undocumented

Method add_arguments Entry point for subclassed commands to add custom arguments.
Method find_fixture_files_in_dir Undocumented
Method find_fixtures Find fixture files for a given label.
Method get_fixture_name_and_dirs Undocumented
Method get_targets Undocumented
Method handle The actual logic of the command. Subclasses must implement this method.
Method load_label Load fixtures files for a given label.
Method loaddata Undocumented
Method parse_name Split fixture name in name, serialization format, compression format.
Method reset_sequences Reset database sequences for the given connection and models.
Method save_obj Save an object if permitted.
Class Variable help Undocumented
Class Variable missing_args_message Undocumented
Instance Variable app_label Undocumented
Instance Variable excluded_apps Undocumented
Instance Variable excluded_models Undocumented
Instance Variable fixture_count Undocumented
Instance Variable fixture_object_count Undocumented
Instance Variable format Undocumented
Instance Variable ignore Undocumented
Instance Variable loaded_object_count Undocumented
Instance Variable models Undocumented
Instance Variable objs_with_deferred_fields Undocumented
Instance Variable serialization_formats Undocumented
Instance Variable using Undocumented
Instance Variable verbosity Undocumented
Property compression_formats A dict mapping format names to (open function, mode arg) tuples.
Property fixture_dirs Return a list of fixture directories.

Inherited from BaseCommand:

Method __init__ Undocumented
Method add_base_argument Call the parser's add_argument() method, suppressing the help text according to BaseCommand.suppressed_base_arguments.
Method check Use the system check framework to validate entire Django project. Raise CommandError for any serious message (error or critical errors). If there are only light messages (like warnings), print them to stderr and don't raise an exception.
Method check_migrations Print a warning if the set of migrations on disk don't match the migrations in the database.
Method create_parser Create and return the ``ArgumentParser`` which will be used to parse the arguments to this command.
Method execute Try to execute this command, performing system checks if needed (as controlled by the ``requires_system_checks`` attribute, except if force-skipped).
Method get_version Return the Django version, which should be correct for all built-in Django commands. User-supplied commands can override this method to return their own version.
Method print_help Print the help message for this command, derived from ``self.usage()``.
Method run_from_argv Set up any environment changes requested (e.g., Python path and Django settings), then run this command. If the command raises a ``CommandError``, intercept it and print it sensibly to stderr. If the ``--traceback`` option is present or the raised ``Exception`` is not ``CommandError``, raise it.
Class Variable base_stealth_options Undocumented
Class Variable output_transaction Undocumented
Class Variable requires_migrations_checks Undocumented
Class Variable requires_system_checks Undocumented
Class Variable stealth_options Undocumented
Class Variable suppressed_base_arguments Undocumented
Instance Variable stderr Undocumented
Instance Variable stdout Undocumented
Instance Variable style Undocumented
Instance Variable _called_from_command_line Undocumented
def add_arguments(self, parser): (source)

Entry point for subclassed commands to add custom arguments.

def find_fixture_files_in_dir(self, fixture_dir, fixture_name, targets): (source)

Undocumented

@functools.lru_cache(maxsize=None)
def find_fixtures(self, fixture_label): (source)

Find fixture files for a given label.

def get_fixture_name_and_dirs(self, fixture_name): (source)

Undocumented

def get_targets(self, fixture_name, ser_fmt, cmp_fmt): (source)

Undocumented

def handle(self, *fixture_labels, **options): (source)

The actual logic of the command. Subclasses must implement this method.

def load_label(self, fixture_label): (source)

Load fixtures files for a given label.

def loaddata(self, fixture_labels): (source)

Undocumented

def parse_name(self, fixture_name): (source)

Split fixture name in name, serialization format, compression format.

def reset_sequences(self, connection, models): (source)

Reset database sequences for the given connection and models.

def save_obj(self, obj): (source)

Save an object if permitted.

missing_args_message: str = (source)

Undocumented

app_label = (source)

Undocumented

excluded_apps = (source)

Undocumented

excluded_models = (source)

Undocumented

fixture_count: int = (source)

Undocumented

fixture_object_count: int = (source)

Undocumented

Undocumented

Undocumented

loaded_object_count: int = (source)

Undocumented

Undocumented

objs_with_deferred_fields: list = (source)

Undocumented

serialization_formats = (source)

Undocumented

Undocumented

verbosity = (source)

Undocumented

@cached_property
compression_formats = (source)

A dict mapping format names to (open function, mode arg) tuples.

Return a list of fixture directories. The list contains the 'fixtures' subdirectory of each installed application, if it exists, the directories in FIXTURE_DIRS, and the current directory.