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'
View this page on GitHub.
Posted .

Comments

Leave a Reply