cms.core.management package¶
Subpackages¶
- cms.core.management.commands package
- Submodules
- cms.core.management.commands.cms_core_app_delete module
- cms.core.management.commands.cms_core_app_start module
- cms.core.management.commands.cms_core_collectmedia module
- cms.core.management.commands.cms_core_contenttypes_update module
- cms.core.management.commands.cms_core_models_graph module
- cms.core.management.commands.cms_core_project module
- cms.core.management.commands.cms_core_project_initialize module
- cms.core.management.commands.cms_core_runserver module
- cms.core.management.commands.cms_core_shell module
- Module contents
Submodules¶
cms.core.management.base module¶
-
class
cms.core.management.base.
BaseCommand
¶ Bases:
django.core.management.base.BaseCommand
-
check_proc
(proc)¶
-
error
(msg)¶
-
handle
(*args, **options)¶
-
log
(msg, level=1)¶ Small log helper
-
log_error
(msg)¶
-
requires_system_checks
= False¶
-
set_options
(**options)¶
-
-
class
cms.core.management.base.
NoArgsCommand
¶ Bases:
cms.core.management.base.BaseCommand
A command which takes no arguments on the command line.
Rather than implementing
handle()
, subclasses must implementhandle_noargs()
;handle()
itself is overridden to ensure no arguments are passed to the command.Attempting to pass arguments will raise
CommandError
.-
args
= ''¶
-
handle
(*args, **options)¶
-
handle_noargs
(**options)¶ Perform this command’s actions.
-
-
class
cms.core.management.base.
SingleArgsCommand
¶ Bases:
cms.core.management.base.BaseCommand
-
handle
(*args, **options)¶
-
-
cms.core.management.base.
parse_cms_ini
(section, ini_files=None)¶
cms.core.management.colors module¶
-
cms.core.management.colors.
color_style
()¶ Returns a Style object with the Django color scheme.
cms.core.management.modelviz module¶
modelviz.py - DOT file generator for Django Models
- Based on:
- Django model to DOT (Graphviz) converter by Antonio Cavedoni <antonio@cavedoni.org> Adapted to be used with django-extensions
-
cms.core.management.modelviz.
generate_dot
(app_labels, **kwargs)¶
-
cms.core.management.modelviz.
parse_file_or_list
(arg)¶
Module contents¶
-
class
cms.core.management.
ManagementUtility
(argv=None)¶ Bases:
django.core.management.ManagementUtility
-
main_help_text
(commands_only=False)¶ Returns the script’s main help text, as a string. Display full app instead of app.rpartition(‘.’)[-1].
-
-
cms.core.management.
execute_from_command_line
(argv=None)¶ A simple method that runs a ManagementUtility.
-
cms.core.management.
ini_to_os
(section='manage', ini_files=None)¶