Skip to main content

django tree permisson

Project description

django-tree-perm

PyPI - Version GitHub Actions Workflow Status GitHub Actions Workflow Status Coveralls PyPI - Wheel PyPI - Python Version PyPI - Implementation GitHub License Read the Docs

django-tree-perm is implemented by Django and provides interfaces and pages for managing tree data structure nodes.

django-tree-perm 是 Django 实现的,提供了树形数据结构结点管理的接口和页面。

主要应用场景有:

  • CMDB 服务树的管理;
  • web 项目页面权限的管理控制;

具体使用说明可以查看 readthedocs 或者直接查看源码注释。

1. 安装

pip install django-tree-perm

可查看版本变更记录 ChangeLog

2. 使用

在项目 settings.py 中配置引入:

INSTALLED_APPS = [
    # ...
    "django_tree_perm",
]

在项目 urls.py 中加入接口配置:

path("tree/", include("django_tree_perm.urls")),

执行数据库变更:

python manage.py migrate django_tree_perm

运行服务: python manage.py runserver 0.0.0.0:8000

可通过浏览器访问展示及管理页面 http://localhost:8000/tree/

3. Demo 示例

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_tree_perm-1.0.0.tar.gz (357.7 kB view hashes)

Uploaded Source

Built Distribution

django_tree_perm-1.0.0-py3-none-any.whl (354.3 kB view hashes)

Uploaded Python 3

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