openedx.core.djangoapps.theming.management.commands package#

Submodules#

openedx.core.djangoapps.theming.management.commands.compile_sass module#

Management command for compiling sass.

DEPRECATED in favor of npm run compile-sass.

class openedx.core.djangoapps.theming.management.commands.compile_sass.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Compile theme sass and collect theme assets.

add_arguments(parser)#

Add arguments for compile_sass command.

Parameters:

parser (django.core.management.base.CommandParser) – parsed for parsing command line arguments.

handle(*args, **options)#

Handle compile_sass command.

help = "DEPRECATED. Use 'npm run compile-sass' instead."#
requires_system_checks = []#

openedx.core.djangoapps.theming.management.commands.create_sites_and_configurations module#

This command will be run by an ansible script.

class openedx.core.djangoapps.theming.management.commands.create_sites_and_configurations.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Command to create the site, site themes, configuration and oauth2 clients for all WL-sites.

Example: ./manage.py lms create_sites_and_configurations –dns-name whitelabel –theme-path /edx/src/edx-themes/edx-platform

add_arguments(parser)#

Add arguments to the command parser.

configuration_filename = None#
discovery_base_url_fmt = None#
discovery_oauth_complete_url = None#
discovery_user = None#
dns_name = None#
ecommerce_base_url_fmt = None#
ecommerce_oauth_complete_url = None#
ecommerce_user = None#
find(pattern, path)#

Matched the given pattern in given path and returns the list of matching files

get_or_create_service_user(username)#

Creates the service user for ecommerce and discovery.

handle(*args, **options)#

The actual logic of the command. Subclasses must implement this method.

help = 'Command to create the site, site themes, configuration and oauth2 clients for all WL-sites.\n\nExample:\n./manage.py lms create_sites_and_configurations --dns-name whitelabel --theme-path /edx/src/edx-themes/edx-platform'#
theme_path = None#

Module contents#