Management
- Commands
- Bulk Replace Page Icons
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.should_stdin_be_used()Command.stealth_optionsCommand.suppressed_base_arguments
remove_protocol()
- Copy POIs
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.stealth_optionsCommand.suppressed_base_arguments
copy_icon()get_user()make_hardlink()
- Drop Expired User Accounts
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- Duplicate Pages
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
duplicate_page()duplicate_pages()
- Fetch Page Accesses
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- Find Large Files
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- Find Missing Versions
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
MODELSget_model()
- Firebase Data Backup
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.clientCommand.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- Fix Internal Links
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
get_region()get_user()replace_link_helper()replace_links_of_translation()
- Hix Bulk
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
calculate_hix_for_region()
- Import Events
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- Import POIs From Csv
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.autocomplete_address()Command.base_stealth_optionsCommand.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.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
strtobool()
- Repair Tree
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- Replace Links
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- Reset Mt Budget
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- Send Push Notifications
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.send_push_notification()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
- SUMM.AI Bulk
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
summ_ai_bulk()
- Update Link Text
CommandCommand.__init__()Command.add_arguments()Command.add_base_argument()Command.base_stealth_optionsCommand.check()Command.check_migrations()Command.create_parser()Command.execute()Command.get_version()Command.handle()Command.helpCommand.output_transactionCommand.print_help()Command.requires_migrations_checksCommand.requires_system_checksCommand.run_from_argv()Command.set_logging_stream()Command.stealth_optionsCommand.suppressed_base_arguments
get_url()get_user()
- Bulk Replace Page Icons
Debug Command
- class integreat_cms.core.management.debug_command.DebugCommand(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
LogCommandBase 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
ArgumentParserwhich 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--tracebackoption is present or the raisedExceptionis 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:
BaseCommandBase 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
ArgumentParserwhich 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_checksattribute, 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--tracebackoption is present or the raisedExceptionis notCommandError, raise it.