gpt4 book ai didi

django - 在 django 中什么是 SKU?

转载 作者:行者123 更新时间:2023-12-02 11:34:13 27 4
gpt4 key购买 nike

当我阅读 django 代码时,我经常在模型中看到所谓的“sku”,以及 "slug" 。例如:

name = models.CharField(_("Full Name"), max_length=255, blank=False,
help_text=_("This is what the product will be called in the default site language. To add non-default translations, use the Product Translation section below."))
slug = models.SlugField(_("Slug Name"), blank=True,
help_text=_("Used for URLs, auto-generated from name if blank"), max_length=255)
sku = models.CharField(_("SKU"), max_length=255, blank=True, null=True,
help_text=_("Defaults to slug if left blank"))

我不确定与 slug URL 有何关系。

应如何以及何时使用此 SKU?

最佳答案

SKU 是 Stock-Keeping Unit 的缩写.

A stock-keeping unit or SKU is a unique identifier for each distinct product and service that can be purchased. SKU use is rooted in data management, enabling the company to systematically track its inventory or product availability, such as in warehouses and retail outlets. They are often assigned and serialized at the merchant level. Each SKU is attached to an item, variant, product line, bundle, service, fee, or attachment.

关于django - 在 django 中什么是 SKU?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2307674/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com