Use Django slugify

Do the following to use Django's slugify function:

>>> from django.utils.text import slugify
>>> slugify('Love people, use things. The opposite never works.')
u'love-people-use-things-the-opposite-never-works'
If you liked this posting, please feel free to leave me a comment below.
View this page on GitHub.
Posted .

Comments

Leave a Reply