小编Ram*_*mar的帖子

SQLALCHEMY_TRACK_MODIFICATIONS 增加了显着的开销,将来会默认禁用。将其设置为 True 以抑制此警告

我在烧瓶程序中遇到了上述错误。我正在使用 Flask-SQLALCHEMY - 2.4.1 和 Pycharm 编辑器。请帮助解决这个问题。我在这上面浪费了很多时间。

UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True to suppress this warning.
  warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True to suppress this warning.')
 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: …
Run Code Online (Sandbox Code Playgroud)

python flask flask-sqlalchemy

-1
推荐指数
1
解决办法
3176
查看次数

标签 统计

flask ×1

flask-sqlalchemy ×1

python ×1