cms.core.management.commands package¶
Submodules¶
cms.core.management.commands.cms_core_app_delete module¶
cms.core.management.commands.cms_core_app_start module¶
-
class
cms.core.management.commands.cms_core_app_start.
Command
¶ Bases:
django.core.management.templates.TemplateCommand
-
handle
(app_name=None, target=None, **options)¶
-
help
= 'Creates a Triangle CMS app directory structure for the given app name in the current directory or optionally in the given directory.'¶
-
cms.core.management.commands.cms_core_collectmedia module¶
-
class
cms.core.management.commands.cms_core_collectmedia.
Command
(*args, **kwargs)¶ Bases:
django.contrib.staticfiles.management.commands.collectstatic.Command
Command that allows to copy or symlink static files from different locations to the settings.MEDIA_ROOT.
-
collect
()¶ Perform the bulk of the work of collectstatic.
Split off from handle_noargs() to facilitate testing.
-
help
= 'Collect media files in a single location.'¶
-
cms.core.management.commands.cms_core_contenttypes_update module¶
cms.core.management.commands.cms_core_models_graph module¶
-
class
cms.core.management.commands.cms_core_models_graph.
Command
¶ Bases:
django.core.management.base.BaseCommand
-
args
= '[appname]'¶
-
can_import_settings
= True¶
-
handle
(*args, **options)¶
-
help
= 'Creates a GraphViz dot file for the specified app names. You can pass multiple app names and they will all be combined into a single model. Output is usually directed to a dot file.'¶
-
label
= 'application name'¶
-
option_list
= (<Option at 0x2509a70: -v/--verbosity>, <Option at 0x2509b90: --settings>, <Option at 0x2509c20: --pythonpath>, <Option at 0x2509cf8: --traceback>, <Option at 0x2509dd0: --no-color>, <Option at 0x5d98a70: --pygraphviz>, <Option at 0x5d98758: --pydot>, <Option at 0x5d989e0: -d/--disable-fields>, <Option at 0x5d98ab8: -g/--group-models>, <Option at 0x5d98b00: -a/--all-applications>, <Option at 0x5d98b48: -o/--output>, <Option at 0x5d98b90: -l/--layout>, <Option at 0x5d98bd8: -n/--verbose-names>, <Option at 0x5d98c20: -L/--language>, <Option at 0x5d98c68: -x/--exclude-columns>, <Option at 0x5d98cb0: -X/--exclude-models>, <Option at 0x5d98cf8: -e/--inheritance>, <Option at 0x5d98d40: -E/--no-inheritance>, <Option at 0x5d98d88: -R/--hide-relations-from-fields>, <Option at 0x5d98dd0: -S/--disable-sort-fields>)¶
-
print_output
(dotdata)¶
-
render_output_pygraphviz
(dotdata, **kwargs)¶ Renders the image using pygraphviz
-
cms.core.management.commands.cms_core_project module¶
-
class
cms.core.management.commands.cms_core_project.
Command
(*args, **kwargs)¶ Bases:
cms.core.management.base.NoArgsCommand
-
build
()¶
-
build_clean
()¶
-
build_ondemand
()¶
-
build_prepare
()¶
-
check_cms
()¶
-
check_migrations
()¶ Checks to see if the set of migrations on disk matches the migrations in the database. Prints a warning if they don’t match.
-
collect
()¶
-
compress_file
(fin, fout)¶
-
compressor
= {'css': '/var/www/share/TriangleCMS/bin/uglifycss', 'js': '/var/www/share/TriangleCMS/bin/closure-compiler.jar'}¶
-
create_directory
(path, mode)¶
-
docs
()¶
-
handle_noargs
(**options)¶
-
help
= 'Merge and compress all css and javascript files and optional deploy them.'¶
-
minify_file
(fin, fout, mode)¶
-
option_list
= (<Option at 0x2509a70: -v/--verbosity>, <Option at 0x2509b90: --settings>, <Option at 0x2509c20: --pythonpath>, <Option at 0x2509cf8: --traceback>, <Option at 0x2509dd0: --no-color>, <Option at 0x1045f9e0: --noinput>, <Option at 0x1045fb00: --build>, <Option at 0x1045f0e0: --check>, <Option at 0x1045f758: --collect>, <Option at 0x1045f7e8: --deploy>, <Option at 0x1045f518: --docs>, <Option at 0x1045f998: --link>, <Option at 0x1045f8c0: --reminify>, <Option at 0x1051b998: --update-db>)¶
-
requires_system_checks
= False¶
-
set_options
(**options)¶ Set instance variables based on an options dict
-
staticfiles
(mode, site_type, device=None)¶
-
staticfiles_admin
(mode)¶
-
staticfiles_ondemand
(mode, site_type, device=None)¶
-
cms.core.management.commands.cms_core_project_initialize module¶
-
class
cms.core.management.commands.cms_core_project_initialize.
Command
¶ Bases:
cms.core.management.base.NoArgsCommand
-
collectfiles
()¶
-
create_superuser
()¶
-
handle_noargs
(**options)¶
-
help
= 'Create the initial database tables.'¶
-
option_list
= (<Option at 0x2509a70: -v/--verbosity>, <Option at 0x2509b90: --settings>, <Option at 0x2509c20: --pythonpath>, <Option at 0x2509cf8: --traceback>, <Option at 0x2509dd0: --no-color>, <Option at 0xddc04d0: --demo>, <Option at 0xddc0098: --dev>, <Option at 0xddad5f0: --nodata>)¶
-
run_demo
()¶
-
run_dev
()¶
-
set_options
(**options)¶ Set instance variables based on an options dict
-
update_fixtures
()¶
-
update_site_and_settings
()¶
-
cms.core.management.commands.cms_core_runserver module¶
-
class
cms.core.management.commands.cms_core_runserver.
Command
¶ Bases:
django.contrib.staticfiles.management.commands.runserver.Command
-
check
(app_configs=None, tags=None, display_num_errors=False)¶ Overwritten because we wan’t run validation on every reload.
-
check_migrations
()¶ Overwritten because we run migration check on ./manage.py cms_core_project –check called by bin/cms_runserver.py
-
handle
(addrport='', *args, **options)¶
-
option_list
= (<Option at 0x2509a70: -v/--verbosity>, <Option at 0x2509b90: --settings>, <Option at 0x2509c20: --pythonpath>, <Option at 0x2509cf8: --traceback>, <Option at 0x2509dd0: --no-color>, <Option at 0x1090c9e0: -6/--ipv6>, <Option at 0x1090c998: --nothreading>, <Option at 0x1090c908: --noreload>, <Option at 0x1090ca28: --nostatic>, <Option at 0x1090c098: --insecure>, <Option at 0x1090c050: --compress>, <Option at 0x1090c200: --debugtoolbar>)¶
-
validate
(app_config=None, display_num_errors=False)¶ Overwritten because we wan’t run validation on every reload.
-