django-slugify-processor¶
Custom slug processors for Django’s slugify().
Quickstart
Install, configure processors, and start slugifying.
API Reference
Every public function and template filter.
Contributing
Development setup, code style, release process.
Install¶
$ pip install django-slugify-processor
$ uv add django-slugify-processor
At a glance¶
Define a processor function:
def my_processor(value):
value = value.replace("++", "pp")
return value
Register it in your Django settings:
SLUGIFY_PROCESSORS = [
"myapp.processors.my_processor",
]
Use the drop-in replacement for Django’s slugify:
from django_slugify_processor.text import slugify
slugify("C++") # 'cpp'