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'
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'
Comments
Leave a Reply