Installation

Install from PyPI:

pip install django-display-ids

Add to INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    "django_display_ids",
]

Note

Adding to INSTALLED_APPS is only required for template tags. All other features (view mixins, managers, encoding functions) work without it.

Requirements

  • Python 3.12+

  • Django 4.2+

Optional Dependencies

For Django REST Framework integration:

pip install djangorestframework>=3.14

For automatic OpenAPI schema generation with drf-spectacular:

pip install drf-spectacular>=0.28

Both are optional and the package gracefully handles their absence.