django tree permisson
Project description
django-tree-perm
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for django_tree_perm-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06323cf04547bc004c4e104d6174bfd43219e14865711174418c0a6c2ae2f468 |
|
MD5 | 0425086d8012b59eb80f6279bddd8c7e |
|
BLAKE2b-256 | 64f2440a0904ac759e0dadcfba0522da293eb3a9c8423ed48553601102b227b3 |