當我讀取django代碼時,我經常在模型中看到所謂的「sku」和"slug"。 E.g:在django什麼是SKU?
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"))
我不知道什麼是與塞網址的關係。
該SKU應該如何以及何時使用?
作爲更多詳細信息的答案。 – panchicore 2010-02-21 22:24:00