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'
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment