V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
merpyzf
V2EX  ›  Python

请问各位在 Python 中进行 web 开发时涉及到用户角色权限控制的时候是使用已有的第三方模块还是自己根据需求开发的?

  •  
  •   merpyzf · Oct 30, 2018 · 3291 views
    This topic created in 2736 days ago, the information mentioned may be changed or developed.
    11 replies    2018-10-31 10:24:07 +08:00
    heww
        1
    heww  
       Oct 30, 2018 via iPhone
    基于 rabc 做,用第三方库。
    heww
        2
    heww  
       Oct 30, 2018 via iPhone
    嗯,是 rbac。
    xpresslink
        3
    xpresslink  
       Oct 30, 2018
    楼主这话问得无离头。
    Python 进行 web 开发我还没有听说过不用框架的,基本上在框架体系都有相关的第三方模块。
    qq976739120
        4
    qq976739120  
       Oct 30, 2018
    权限控制...一般都是自己写,因为权限多了你用第三方的话你不得不去看源码....还不如一开始就自己写
    rexyan
        5
    rexyan  
       Oct 30, 2018 via iPhone
    接公司统一鉴权,按道理不能自己写一个
    lufangfan
        6
    lufangfan  
       Oct 30, 2018
    我们项目是用的第三方,这个要根据公司业务来看吧。
    merpyzf
        7
    merpyzf  
    OP
       Oct 30, 2018 via Android
    @lufangfan 请问是用的那个第三方模块?
    merpyzf
        8
    merpyzf  
    OP
       Oct 30, 2018 via Android
    @qq976739120 是的,确实存在这个原因。能用好第三方的框架肯定要对它的内部实现有一个深入的认识才行。
    liuguangcuican
        9
    liuguangcuican  
       Oct 30, 2018
    看业务场景吧,我目前做的金融类的项目权限要求细化到针对单条数据某个字段的操作区分,看了下第三方的相关方案没有适合的,还是得自己做
    merpyzf
        10
    merpyzf  
    OP
       Oct 30, 2018 via Android
    @liuguangcuican 好的,谢谢你
    lufangfan
        11
    lufangfan  
       Oct 31, 2018
    @merpyzf django-guardian
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5497 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 05:56 · PVG 13:56 · LAX 22:56 · JFK 01:56
    ♥ Do have faith in what you're doing.