flask_ comprehensive certification

  • All views can obtain user information
    • Hook setting request, data is recorded into a variable g
  • Control access to specific users
    • Scheme 1: foreground / background different path routes the minute blueprint background blueprint setting request into the sub-hook Submenu ⾏ trekking interception
    • Scheme 2: implement a decorator, a particular view for Use with a more flexible and more

functools.wraps

Guess you like

Origin www.cnblogs.com/oklizz/p/11373499.html