shuup.core.management.commands package
Submodules
shuup.core.management.commands.compute_bought_with_relations module
shuup.core.management.commands.makemessages module
Patched version of Django’s Makemessages that works with Jinja2.
Works by monkey patching django.utils.translation.trans_real.templatize with our version.
- shuup.core.management.commands.makemessages.smart_templatize(src, origin=None, **kwargs)[source]
Smart template processor that uses Jinja2 for .jinja files and Django for .html files.
- class shuup.core.management.commands.makemessages.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
Command
- handle(*args, **options)[source]
The actual logic of the command. Subclasses must implement this method.
shuup.core.management.commands.shuup_extract_products_shortdescription module
Extract products short description from the current description.
shuup.core.management.commands.shuup_fix_order_status_identifiers module
shuup.core.management.commands.shuup_init module
- class shuup.core.management.commands.shuup_init.Initializer[source]
Bases:
object
- schemata = [{'identifier': 'default', 'info': {'domain': 'localhost', 'maintenance_mode': False, 'name': 'Default Shop', 'public_name': 'Default Shop', 'status': ShopStatus.ENABLED}, 'model': <class 'shuup.core.models.Shop'>}, {'identifier': 'default', 'info': {'name': 'Standard Product'}, 'model': <class 'shuup.core.models.ProductType'>}, {'identifier': 'digital', 'info': {'name': 'Digital Product'}, 'model': <class 'shuup.core.models.ProductType'>}, {'identifier': 'default', 'info': {'name': 'Default Supplier'}, 'model': <class 'shuup.core.models.Supplier'>}, {'identifier': 'pcs', 'info': {'name': 'Pieces', 'symbol': 'pcs'}, 'model': <class 'shuup.core.models.SalesUnit'>}, {'identifier': 'default_person_customers', 'info': {'name': 'Retail Customers'}, 'model': <class 'shuup.core.models.CustomerTaxGroup'>}, {'identifier': 'default_company_customers', 'info': {'name': 'Company Customers'}, 'model': <class 'shuup.core.models.CustomerTaxGroup'>}, {'identifier': 'USD', 'info': {'decimal_places': 2}, 'model': <class 'shuup.core.models.Currency'>}, {'identifier': 'EUR', 'info': {'decimal_places': 2}, 'model': <class 'shuup.core.models.Currency'>}, {'identifier': 'BRL', 'info': {'decimal_places': 2}, 'model': <class 'shuup.core.models.Currency'>}, {'identifier': 'JPY', 'info': {'decimal_places': 0}, 'model': <class 'shuup.core.models.Currency'>}, {'identifier': 'CNY', 'info': {'decimal_places': 2}, 'model': <class 'shuup.core.models.Currency'>}, {'identifier': 'GBP', 'info': {'decimal_places': 2}, 'model': <class 'shuup.core.models.Currency'>}, {'identifier': 'CAD', 'info': {'decimal_places': 2}, 'model': <class 'shuup.core.models.Currency'>}]
shuup.core.management.commands.shuup_makemessages module
Makemessages helper for Shuup projects.
Runs Django’s makemessages for django and djangojs domains with sane defaults for Shuup projects (ignores and extensions).
- class shuup.core.management.commands.shuup_makemessages.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
Bases:
Command
- help = "\nMakemessages helper for Shuup projects.\n\nRuns Django's makemessages for django and djangojs domains with sane\ndefaults for Shuup projects (ignores and extensions).\n"
shuup.core.management.commands.shuup_migrate_from_shoop module
shuup.core.management.commands.shuup_show_settings module
Show known Shuup settings and their values.