openedx.core.djangoapps.theming.management.commands package#
Submodules#
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:
BaseCommandCommand 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#