推荐学习书目
› 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
mgna17
V2EX  ›  Python

flask 返回 HTTP 423 的正确姿势是什么

  •  
  •   mgna17 · May 27, 2016 · 3333 views
    This topic created in 3775 days ago, the information mentioned may be changed or developed.
    abort(423) 的时候出现了 “ LookupError: no exception for 423 ”
    这是说不支持返回 423 么?
    2 replies  •  2016-05-27 11:37:06 +08:00
    cloverstd
        1
    cloverstd  
       May 27, 2016   ❤️ 1
    https://github.com/pallets/werkzeug/blob/master/werkzeug/exceptions.py

    不支持,但是可以用 werkzeug.exceptions.Aborter 自己造
    mgna17
        2
    mgna17  
    OP
       May 27, 2016
    @cloverstd 了解了,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5387 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 02:08 · PVG 10:08 · LAX 19:08 · JFK 22:08
    ♥ Do have faith in what you're doing.