Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 582 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 582 Bytes

Patch for Django's slugify function.

Adds transliteration of locale-specific symbols into ASCII. Uses unidecode package.

https://code.djangoproject.com/ticket/8391 - related issue.

Usage

  1. Install it:
-e git+https://github.com/simplylizz/django-slugify.git#egg=slugify
  1. Add it to the INSTALLED_APPS in your settings.py:
INSTALLED_APPS = [
    ...
    'slugify',
]
  1. Set PATCH_SLUGIFY = True in your settings.py if you want to monkey-patch default slugify function and make it working with unicode symbols automatically.
  2. Enjoy your URLs. ^__^