cms.core.management package

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 implement handle_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)