lms.djangoapps.commerce.management.commands package#
Submodules#
lms.djangoapps.commerce.management.commands.configure_commerce module#
Command for managing commerce configuration for lms. We can use this command to enable/disable commerce configuration or disable checkout to E-Commerce service.
- class lms.djangoapps.commerce.management.commands.configure_commerce.Command(stdout=None, stderr=None, no_color=False, force_color=False)#
Bases:
BaseCommandCommand to enable or disable commerce configuration.
- Positional Arguments:
This command does not take any positional argument.
- Optional Arguments:
disable (bool): if True then disable configuration, enable otherwise checkout_on_ecommerce (bool): Enable E-Commerce checkout if True, disable otherwise.
- add_arguments(parser)#
Entry point for subclassed commands to add custom arguments.
- handle(*args, **options)#
Create a new commerce configuration or update an existing one according to the command line arguments.
- Parameters:
argument. (This command does not take any positional)
- options:
disable (bool): if True then disable configuration, enable otherwise checkout_on_ecommerce (bool): Enable E-Commerce checkout if True, disable otherwise.
- help = 'Enable/Disable commerce configuration, including configuration of E-Commerce checkout.'#
lms.djangoapps.commerce.management.commands.create_orders_for_old_enterprise_course_enrollment module#
Management command to ./manage.py lms create_orders_for_old_enterprise_course_enrollment ./manage.py lms create_orders_for_old_enterprise_course_enrollment –start-index=0 –end-index=100 ./manage.py lms create_orders_for_old_enterprise_course_enrollment –start-index=0 –end-index=100 –batch-size=20 ./manage.py lms create_orders_for_old_enterprise_course_enrollment –start-index=0 –end-index=100 –sleep-time=1.5
- class lms.djangoapps.commerce.management.commands.create_orders_for_old_enterprise_course_enrollment.Command(*args, **kwargs)#
Bases:
BaseCommandCommand to back-populate orders(in e-commerce) for the enterprise_course_enrollments.
- add_arguments(parser)#
Definition of arguments this command accepts
- handle(*args, **options)#
Main command handler
- help = 'Command to back-populate orders(in e-commerce) for the enterprise_course_enrollments.'#