Installation

Requirements

  • Python 3.9 to 3.13 supported.

  • PyPy 3.9 to 3.10 supported.

  • Django 4.2 to 5.1 supported.

  • Postgres 14 to 17 supported.

Installation

Attention

Please remember to uninstall django-ltree before installing django-ltree-2, since both uses django_ltree namespace.

  1. Install with pip:

python -m pip install django-ltree-2
  1. Add django-ltree to your INSTALLED_APPS:

settings.py
INSTALLED_APPS = [
    ...,
    "django_ltree",
    ...,
]
  1. Run migrations:

./manage.py migrate