Skip to main content

A django that implements in a model the ltree postgres extension

Project description

django-ltree

An ltree extension implementation to support hierarchical tree-like data in django models

Postgresql has already a optimized and very useful tree implementation for data. The extension is ltree

Links

PyPI version

Install

pip install django-ltree

Then add django_ltree to INSTALLED_APPS in your Django project settings.

And make sure to run django_ltree migrations before you added the PathField

python manage.py migrate django_ltree

This will install the ltree extension

Requires:

  • Django 2.0 or superior
  • Python 3.6 or superior

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_ltree-0.4-py2.py3-none-any.whl (6.9 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page