Django slugify - use text to create html id's, classes, etc

Oscar Brito

Django Utils | Django documentation | Django: "django.utils.text"

Create html strings to use in id and class attributes with:


Converts to lowercase, removes non-word characters (alphanumerics and underscores) and converts spaces to hyphens. Also strips leading and trailing whitespace.

Visit for more informations, contacts and news about Web Development.
See other blog posts at

Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.

Feel free to contact divhide.