title: What is a "slug" in Django?
body: <p>When I read Django code I often see in models what is called a &quot;slug&quot;. I am not quite sure what this is, but I do know it has something to do with URLs. How and when is this slug-thing supposed to be used?</p>
  <p>(I have read its definition in <a href="http://docs.djangoproject.com/en/dev/glossary/" rel="nofollow noreferrer">this glossary</a>.)</p>
  <blockquote>
  <p><strong>Slug</strong><br />
  A short label for something, containing only letters, numbers,
  underscores or hyphens. They’re generally used in URLs. For example,
  in a typical blog entry URL:</p>
  <p><a href="https://www.djangoproject.com/weblog/2008/apr/12/spring/" rel="nofollow noreferrer">https://www.djangoproject.com/weblog/2008/apr/12/spring/</a> the last bit
  (spring) is the slug.</p>
  </blockquote>