Giter Club home page Giter Club logo

Comments (5)

flyhigher139 avatar flyhigher139 commented on May 24, 2024

@vTNT 可以用flask-principal实现权限机制,如果你想要类似django原生的权限配置页面,要自己写

也可以找找flask扩展中有没有满足你需求的轮子

from octblog.

vTNT avatar vTNT commented on May 24, 2024

flask-principal 从我看一些例子的理解是这样的 就是提前设置一些用户角色,比如类似su, admin, editor, writer, reader 那么比如我是想先细分每个Project的权限, 比如assets 然后分配具体的add_assets,然后通过web 创建具体的组 并且在分配具体项目的权限 这种情况下 还可以用flask-principal吗

from octblog.

vTNT avatar vTNT commented on May 24, 2024

https://github.com/raddevon/flask-permissions 找到这个 有点类似我那需求

from octblog.

flyhigher139 avatar flyhigher139 commented on May 24, 2024

@vTNT flask-principal 用起来非常灵活,关键是要想清楚自己的权限模型,然后各种权限需求都可以用flask-principal实现,所以flask-principal能用好的话,学习曲线并不是很低,你提到的那些用法是最常用的、最典型的权限模型,所以flask-principal直接固化下来,并在文档中做了介绍

from octblog.

vTNT avatar vTNT commented on May 24, 2024

因为我想做个页面 来灵活管理 所以想基于数据库的方式

from octblog.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.