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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file django_ltree-0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: django_ltree-0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django_ltree-0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 768c5a328342e18f66ee0feaa90dcb02cdd2de89f45ac1ae498e0f5cc64b9f2f
MD5 dd71c12f05678bef42c6d67e47dea736
BLAKE2b-256 3abfb1453c87a83e5dc1599394e7d3a14a8efd21a1463470fccde708a5631f31

See more details on using hashes here.

Supported by

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