import unicodedata
import string
def slug(text, separator="-"):
text = text.lower().replace(" ", separator).replace("ł", "l")
nfkd_form = unicodedata.normalize('NFKD', text)
return "".join([c for c in nfkd_form if not unicodedata.combining(c)
and c in string.ascii_lowercase+separator])
Python snippet for making slugs
Just a tiny snippet for future use