Installation

Dependencies

Django i18n Fields has minimal dependencies:

Core Dependencies:

  • Django (>=5.0) - Web framework with JSONField support

  • Python (>=3.10) - Modern Python version

Optional Dependencies:

  • Django REST Framework (>=3.0) - For REST API integration

  • DRF Spectacular - For automatic API documentation generation

Installation Options

Basic Installation

Install Django i18n Fields using pip:

pip install django-i18n-fields

With Django REST Framework Support

If you’re using Django REST Framework:

pip install django-i18n-fields djangorestframework

Install from Git

Install the latest development version from GitHub:

# Latest stable version
pip install git+https://github.com/huynguyengl99/django-i18n-fields.git

# Specific branch or tag
pip install git+https://github.com/huynguyengl99/django-i18n-fields.git@main

Verify Installation

After installation, verify that Django i18n Fields is properly installed:

# In Python shell or Django shell
import i18n_fields
print(i18n_fields.__version__)

# Check available modules
from i18n_fields import LocalizedCharField, LocalizedTextField

# Check DRF support (if installed)
from i18n_fields.drf import LocalizedModelSerializer

Next Steps

After installation, proceed to Getting Started for configuration and setup instructions.