'Create a new commerce configuration or update an existing one according to the command line arguments.
args:
This command does not take any positional argument.
options:
disable (bool):    if True then disable configuration, enable otherwise
checkout_on_ecommerce (bool): Enable E-Commerce checkout if True, disable otherwise.'

def handle(self, *args, **options):

    disable = options.get(u'disable')
    checkout_on_ecommerce = options.get(u'checkout_on_ecommerce')
    CommerceConfiguration.objects.update_or_create(id=1, defaults={u'enabled': (not disable), u'checkout_on_ecommerce_service': checkout_on_ecommerce})
    logger.info(u'Commerce    Configuration    {configuration_status}    with    checkout    on    ecommerce    {checkout_status}.'.format(configuration_status=(u'disabled' if disable else u'enabled'), checkout_status=(u'enabled' if checkout_on_ecommerce else u'disabled')))
