代码之家  ›  专栏  ›  技术社区  ›  panchicore

在Django,什么是sku?

  •  5
  • panchicore  · 技术社区  · 15 年前

    当我阅读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?

    3 回复  |  直到 15 年前
        1
  •  5
  •   Mark Byers    15 年前
        2
  •  3
  •   Gabriel Hurley    15 年前
        3
  •  2
  •   brian    15 年前