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

Submodules#

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

Management command for compiling 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 = 'Compile and collect themed assets...'#
static parse_arguments(*args, **options)#

Parse and validate arguments for compile_sass command.

Parameters:
  • *args – Positional arguments passed to the update_assets command

  • **options – optional arguments passed to the update_assets command

Returns:

A tuple containing parsed values for themes, system, source comments and output style. 1. system (list): list of system names for whom to compile theme sass e.g. ‘lms’, ‘cms’ 2. theme_dirs (list): list of Theme objects 3. themes (list): list of Theme objects 4. force (bool): Force full compilation 5. debug (bool): Disable Sass compression

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#