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

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

  •  
  •   coolair · 2017-03-13 16:43:12 +08:00 · 1033 次点击
    这是一个创建于 2662 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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   ·   实用小工具   ·   2809 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:36 · PVG 22:36 · LAX 07:36 · JFK 10:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.