model.management.commands package

Submodules

model.management.commands.create_admin module

class model.management.commands.create_admin.Command(*args, **kwargs)

Bases: Command

add_arguments(parser)

Entry point for subclassed commands to add custom arguments.

handle(*args, **options)

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

help = 'Non-interactively create an admin user'

model.management.commands.wait_for_db module

class model.management.commands.wait_for_db.Command(stdout=None, stderr=None, no_color=False, force_color=False)

Bases: BaseCommand

add_arguments(parser)

Entry point for subclassed commands to add custom arguments.

handle(*args, **options)

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

help = 'Blocks until the database is available'

Module contents