Comments (5)
@vTNT 可以用flask-principal实现权限机制,如果你想要类似django原生的权限配置页面,要自己写
也可以找找flask扩展中有没有满足你需求的轮子
from octblog.
flask-principal 从我看一些例子的理解是这样的 就是提前设置一些用户角色,比如类似su, admin, editor, writer, reader 那么比如我是想先细分每个Project的权限, 比如assets 然后分配具体的add_assets,然后通过web 创建具体的组 并且在分配具体项目的权限 这种情况下 还可以用flask-principal吗
from octblog.
https://github.com/raddevon/flask-permissions 找到这个 有点类似我那需求
from octblog.
@vTNT flask-principal 用起来非常灵活,关键是要想清楚自己的权限模型,然后各种权限需求都可以用flask-principal实现,所以flask-principal能用好的话,学习曲线并不是很低,你提到的那些用法是最常用的、最典型的权限模型,所以flask-principal直接固化下来,并在文档中做了介绍
from octblog.
因为我想做个页面 来灵活管理 所以想基于数据库的方式
from octblog.
Related Issues (16)
- 关于 管理页面 HOT 1
- 请问按照教程在服务器上部署了,为啥无法访问呢? HOT 1
- 博客上传图片的问题 HOT 5
- Deploy OctBlog by debian8 mod_wsgi HOT 1
- Why I can't update my config.py? HOT 6
- 部署问题 HOT 1
- 关于多用户的疑问 HOT 1
- mongodb数据库设置auth之后,如何通过用户名和密码登录 HOT 2
- [Errno 111] Connection refused HOT 1
- 能不能提供一个文章置顶的功能 HOT 4
- How to make database fit to the new weight feature? HOT 1
- Admin登录用户名和密码是多少? HOT 1
- 请问发表的文章怎么展示在首页 HOT 3
- Blogs that powered by OctBlog HOT 2
- Docker Errors in Readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octblog.