What Is Slug In Django
In the newspaper, "Slug" is a brief heading (a eye-catcher) that appears at the top of a story.
But in Django, this is about a valid URL of a page. For instance, we are not allowed to use a space in the URL. So we can replace the space with '-'. We probably set the title to the URL. That is why this is called 'Slug'.
<title> The 46 Year Old Virgin </title>
<content> A silly comedy movie </content>
<slug> the-46-year-old-virgin </slug>

Comments
Post a Comment