V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
coolair
V2EX  ›  问与答

csrf_enabled 被 deprecated 了,应该怎么改啊?!

  •  
  •   coolair · 2017 年 3 月 13 日 · 1266 次点击
    这是一个创建于 3315 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/lepture/flask-wtf/pull/271

    现在一直报警告:
    FlaskWTFDeprecationWarning: "csrf_enabled" is deprecated and will be removed in 1.0. Set "meta.csrf" instead.

    我代码里有这么一段在 MyForm 的 class 里:
    def __init__(self, csrf_enabled=False, *args, **kwargs):
    ....super(MyForm, self).__init__(csrf_enabled=csrf_enabled, *args, **kwargs)
    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   3169 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:35 · PVG 16:35 · LAX 01:35 · JFK 04:35
    ♥ Do have faith in what you're doing.