Management
- Commands
- Drop Expired User Accounts
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
- Duplicate Pages
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
duplicate_page()
duplicate_pages()
- Find Large Files
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
- Find Missing Versions
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
MODELS
get_model()
- Firebase Data Backup
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.client
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
- Fix Internal Links
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
get_region()
get_user()
replace_link_helper()
replace_links_of_translation()
- Hix Bulk
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
calculate_hix_for_region()
- Import Events
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
- Import POIs From Csv
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.autocomplete_address()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_category()
Command.get_opening_hours()
Command.get_or_create_default_category()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
strtobool()
- Repair Tree
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
- Replace Links
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
- Reset Mt Budget
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
- Send Push Notifications
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.send_push_notification()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
- SUMM.AI Bulk
Command
Command.__init__()
Command.add_arguments()
Command.add_base_argument()
Command.base_stealth_options
Command.check()
Command.check_migrations()
Command.create_parser()
Command.execute()
Command.get_version()
Command.handle()
Command.help
Command.output_transaction
Command.print_help()
Command.requires_migrations_checks
Command.requires_system_checks
Command.run_from_argv()
Command.set_logging_stream()
Command.stealth_options
Command.suppressed_base_arguments
summ_ai_bulk()
- Drop Expired User Accounts
Debug Command
- class integreat_cms.core.management.debug_command.DebugCommand(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
LogCommand
Base class for management commands which can only be executed in debug mode
- add_base_argument(parser, *args, **kwargs)[source]
Call the parser’s add_argument() method, suppressing the help text according to BaseCommand.suppressed_base_arguments.
- check(app_configs=None, tags=None, display_num_errors=False, include_deployment_checks=False, fail_level=40, databases=None)[source]
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.
- check_migrations()[source]
Print a warning if the set of migrations on disk don’t match the migrations in the database.
- create_parser(prog_name, subcommand, **kwargs)[source]
Create and return the
ArgumentParser
which will be used to parse the arguments to this command.
- execute(*args: Any, **options: Any) None [source]
Try to run the command
- Parameters:
*args (Any) – The supplied arguments
**options (Any) – The supplied keyword options
- Raises:
CommandError – When the input is invalid
- Return type:
None
- get_version()[source]
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.
- handle(*args: Any, **options: Any) None [source]
The actual logic of the command. Subclasses must implement this method.
- Parameters:
args (Any)
options (Any)
- Return type:
None
- print_help(prog_name, subcommand)[source]
Print the help message for this command, derived from
self.usage()
.
- run_from_argv(argv)[source]
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 raisedException
is notCommandError
, raise it.
Log Command
- class integreat_cms.core.management.log_command.LogCommand(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
BaseCommand
Base class for management commands to set the stream handler of the logger to the command’s stdout wrapper
- add_base_argument(parser, *args, **kwargs)[source]
Call the parser’s add_argument() method, suppressing the help text according to BaseCommand.suppressed_base_arguments.
- check(app_configs=None, tags=None, display_num_errors=False, include_deployment_checks=False, fail_level=40, databases=None)[source]
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.
- check_migrations()[source]
Print a warning if the set of migrations on disk don’t match the migrations in the database.
- create_parser(prog_name, subcommand, **kwargs)[source]
Create and return the
ArgumentParser
which will be used to parse the arguments to this command.
- execute(*args, **options)[source]
Try to execute this command, performing system checks if needed (as controlled by the
requires_system_checks
attribute, except if force-skipped).
- get_version()[source]
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.
- handle(*args: Any, **options: Any) None [source]
The actual logic of the command. Subclasses must implement this method.
- Parameters:
args (Any)
options (Any)
- Return type:
None
- print_help(prog_name, subcommand)[source]
Print the help message for this command, derived from
self.usage()
.
- run_from_argv(argv)[source]
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 raisedException
is notCommandError
, raise it.