coolair
V2EX  ›  问与答

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

  •  
  •   coolair · Mar 13, 2017 · 1405 views
    This topic created in 3378 days ago, the information mentioned may be changed or developed.
    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)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2978 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 04:46 · PVG 12:46 · LAX 21:46 · JFK 00:46
    ♥ Do have faith in what you're doing.