So, in my Django projects, I made my model to be like the following
class Store(models.Model):
domainKey = models.CharField()
I had the above to make each store has its own domain like the following
www.domain.com/my-name-is-django
Anyway, it was perfectly working fine. But, I just found out SlugField()
which is used for the same purpose as what I did in above.
My question is why we need to use SlugField() because I implemented the same thing without SlugField()
. Is there its own any feature that CharField()
doesn't have?