django_utils.management.commands package

Submodules

django_utils.management.commands.admin_autogen module

class django_utils.management.commands.admin_autogen.Command(*args: Any, **kwargs: Any)[source]

Bases: CustomBaseCommand

handle(*args: Any, **kwargs: Any) None[source]

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

django_utils.management.commands.base_command module

class django_utils.management.commands.base_command.CustomAppCommand(*args: Any, **kwargs: Any)[source]

Bases: CustomBaseCommand, AppCommand

class django_utils.management.commands.base_command.CustomBaseCommand(*args: Any, **kwargs: Any)[source]

Bases: BaseCommand, Logged

create_logger() Logger[source]
handle(*args: Any, **kwargs: Any) str | None[source]

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

loggers: ClassVar[tuple[str, ...]] = ()

django_utils.management.commands.settings module

class django_utils.management.commands.settings.Command(*args: Any, **kwargs: Any)[source]

Bases: CustomBaseCommand

add_arguments(parser: ArgumentParser) None[source]

Entry point for subclassed commands to add custom arguments.

can_import_settings = True
handle(*args: Any, **options: Any) None[source]

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

help = 'Get a list of the current settings, any arguments given will be\n    used to match the settings name (case insensitive).\n    '
output_types: ClassVar[tuple[str, ...]] = ('pprint', 'print', 'json', 'csv')
render_output(data: dict[str, Any] | None, output_type: str | None = 'pprint', show_keys: bool = False, **options: Any) None[source]
requires_model_validation = False
django_utils.management.commands.settings.json_default(obj: Any) str[source]

Module contents