moo.core.management.commands.moo_enableuser.Command
- class moo.core.management.commands.moo_enableuser.Command(stdout=None, stderr=None, no_color=False, force_color=False)
- __init__(stdout=None, stderr=None, no_color=False, force_color=False)
Methods
__init__([stdout, stderr, no_color, force_color])add_arguments(parser)Entry point for subclassed commands to add custom arguments.
add_base_argument(parser, *args, **kwargs)Call the parser's add_argument() method, suppressing the help text according to BaseCommand.suppressed_base_arguments.
check([app_configs, tags, ...])Use the system check framework to validate entire Django project.
check_migrations()Print a warning if the set of migrations on disk don't match the migrations in the database.
create_parser(prog_name, subcommand, **kwargs)Create and return the
ArgumentParserwhich will be used to parse the arguments to this command.execute(*args, **options)Try to execute this command, performing system checks if needed (as controlled by the
requires_system_checksattribute, except if force-skipped).get_version()Return the Django version, which should be correct for all built-in Django commands.
handle(username, avatar[, wizard, hostname])The actual logic of the command.
print_help(prog_name, subcommand)Print the help message for this command, derived from
self.usage().run_from_argv(argv)Set up any environment changes requested (e.g., Python path and Django settings), then run this command.
Attributes
base_stealth_optionshelpoutput_transactionrequires_migrations_checksrequires_system_checksstealth_optionssuppressed_base_arguments