Skip to main content

Continual of django-ltree

Project description

django-ltree

Downloads Documentation Status CI Pypi Badge pre-commit.ci status

A tree extension implementation to support hierarchical tree-like data in Django models, using the native Postgres extension ltree.

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

This fork contains is a continuation of the work done by mariocesar on django-ltree and merges the work done by simkimsia on greendeploy-django-ltree

Install

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


pip install django-ltree-2

Then add django_ltree to INSTALLED_APPS in your Django project settings.

INSTALLED_APPS = [
    ...,
    'django_ltree',
    ...
]

Then use it like this:

from django_ltree.models import TreeModel


class CustomTree(TreeModel):
    ...

Requires

  • Django 3.2 or superior
  • Python 3.9 or higher

Project details


Download files

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

Source Distribution

django_ltree_2-0.1.10.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

django_ltree_2-0.1.10-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file django_ltree_2-0.1.10.tar.gz.

File metadata

  • Download URL: django_ltree_2-0.1.10.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for django_ltree_2-0.1.10.tar.gz
Algorithm Hash digest
SHA256 1540aced6564429865b6330dfe7bbacbb3cedfdff3823b546859265117c9f048
MD5 acd7ba48a7319c6d62f69753df13cce4
BLAKE2b-256 f5ac0bdd266c0799db692b31be9a40be6f1608fbe9938a6a2b1e581a20bf8f18

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_ltree_2-0.1.10.tar.gz:

Publisher: CI.yml on baseplate-admin/django-ltree-2

Attestations:

File details

Details for the file django_ltree_2-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for django_ltree_2-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1b3b51c5b97beda5254cdf0dcef83a5c4258c791e3b2b6c331d1e52a8b1dd6a2
MD5 ecf0e2091ce5dfa0d3a74b4dd26a2357
BLAKE2b-256 9c87e69e1335bd357a02649fef064f26c0231507a4fa510f7d338b3a625c7c35

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_ltree_2-0.1.10-py3-none-any.whl:

Publisher: CI.yml on baseplate-admin/django-ltree-2

Attestations:

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