class documentation

Copies or symlinks static files from different locations to the settings.STATIC_ROOT.

Method __init__ Undocumented
Method add_arguments Entry point for subclassed commands to add custom arguments.
Method clear_dir Delete the given relative path using the destination storage backend.
Method collect Perform the bulk of the work of collectstatic.
Method copy_file Attempt to copy ``path`` with storage
Method delete_file Check if the target file should be deleted if it already exists.
Method handle The actual logic of the command. Subclasses must implement this method.
Method is_local_storage Undocumented
Method link_file Attempt to link ``path``
Method log Small log helper
Method set_options Set instance variables based on an options dict
Class Variable help Undocumented
Class Variable requires_system_checks Undocumented
Instance Variable clear Undocumented
Instance Variable copied_files Undocumented
Instance Variable dry_run Undocumented
Instance Variable ignore_patterns Undocumented
Instance Variable interactive Undocumented
Instance Variable post_process Undocumented
Instance Variable post_processed_files Undocumented
Instance Variable storage Undocumented
Instance Variable style Undocumented
Instance Variable symlink Undocumented
Instance Variable symlinked_files Undocumented
Instance Variable unmodified_files Undocumented
Instance Variable verbosity Undocumented
Property local Undocumented

Inherited from BaseCommand:

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 stealth_options Undocumented
Class Variable suppressed_base_arguments Undocumented
Instance Variable stderr Undocumented
Instance Variable stdout Undocumented
Instance Variable _called_from_command_line Undocumented
def __init__(self, *args, **kwargs): (source)
def add_arguments(self, parser): (source)

Entry point for subclassed commands to add custom arguments.

def clear_dir(self, path): (source)

Delete the given relative path using the destination storage backend.

def collect(self): (source)

Perform the bulk of the work of collectstatic. Split off from handle() to facilitate testing.

def copy_file(self, path, prefixed_path, source_storage): (source)

Attempt to copy ``path`` with storage

def delete_file(self, path, prefixed_path, source_storage): (source)

Check if the target file should be deleted if it already exists.

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

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

def is_local_storage(self): (source)

Undocumented

def link_file(self, path, prefixed_path, source_storage): (source)

Attempt to link ``path``

def log(self, msg, level=2): (source)

Small log helper

def set_options(self, **options): (source)

Set instance variables based on an options dict

Undocumented

copied_files: list = (source)

Undocumented

Undocumented

ignore_patterns = (source)

Undocumented

interactive = (source)

Undocumented

post_process = (source)

Undocumented

post_processed_files: list = (source)

Undocumented

Undocumented

Undocumented

symlinked_files: list = (source)

Undocumented

unmodified_files: list = (source)

Undocumented

verbosity = (source)

Undocumented