Skip to content
Snippets Groups Projects
Commit dedb0ee6 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Added FSADeprecationWarning problem and solution in README

parent 9dcd57c1
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment