diff --git a/README.md b/README.md index 1125d5333be04a717aabe263ca950ad2fc2d671f..5993ea109aea6c1d2b901bbfd40e1d816c56841c 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,20 @@ This is a project implementing the blog post by Mbithe Nzomo. ```shell $ mv app.db app/ ``` + +4. **FSADeprecationWarning** while accessing database using SQLAlchemy + + ```shell + APP_ROOT/venv/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS + adds significant overhead and will be disabled by default in the future. + Set it to True or False to suppress this warning. + ``` + + **Solution:** + Set SQLALCHEMY_TRACK_MODIFICATIONS to **False/True** at line 789 in flask_sqlalchemy/\_\_init\_\_.py + + ```python + 788 track_modifications = app.config.setdefault( + 789 'SQLALCHEMY_TRACK_MODIFICATIONS', False + 790 ) + ```