class documentation

class Command(BaseCommand):

Known subclasses: django.contrib.staticfiles.management.commands.runserver.Command

View In Hierarchy

Undocumented

Method add​_arguments Entry point for subclassed commands to add custom arguments.
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​_handler Return the default WSGI handler for the runner.
Method handle The actual logic of the command. Subclasses must implement this method.
Method inner​_run Undocumented
Method run Run the server, using the autoreloader if needed.
Class Variable default​_addr Undocumented
Class Variable default​_addr​_ipv6 Undocumented
Class Variable default​_port Undocumented
Class Variable help Undocumented
Class Variable protocol Undocumented
Class Variable requires​_system​_checks Undocumented
Class Variable stealth​_options Undocumented
Class Variable suppressed​_base​_arguments Undocumented
Instance Variable ​_raw​_ipv6 Undocumented
Instance Variable addr Undocumented
Instance Variable port Undocumented
Instance Variable use​_ipv6 Undocumented

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 No summary
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 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 No summary
Class Variable base​_stealth​_options Undocumented
Class Variable output​_transaction Undocumented
Class Variable requires​_migrations​_checks Undocumented
Instance Variable ​_called​_from​_command​_line Undocumented
Instance Variable stderr Undocumented
Instance Variable stdout Undocumented
Instance Variable style Undocumented
def add_arguments(self, parser):
Entry point for subclassed commands to add custom arguments.
def execute(self, *args, **options):
Try to execute this command, performing system checks if needed (as controlled by the requires_system_checks attribute, except if force-skipped).
def get_handler(self, *args, **options):
Return the default WSGI handler for the runner.
def handle(self, *args, **options):
The actual logic of the command. Subclasses must implement this method.
def inner_run(self, *args, **options):

Undocumented

def run(self, **options):
Run the server, using the autoreloader if needed.
default_addr: str =

Undocumented

default_addr_ipv6: str =

Undocumented

default_port: str =

Undocumented

protocol: str =

Undocumented

requires_system_checks: list =
stealth_options: tuple[str, ...] =
suppressed_base_arguments: set[str] =
_raw_ipv6 =

Undocumented

addr =

Undocumented

port =

Undocumented

use_ipv6 =

Undocumented