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

Added solution2 for FSADeprecationWarning

parent ecb8e620
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ $ flask run ...@@ -129,7 +129,7 @@ $ flask run
Set it to True or False to suppress this warning. Set it to True or False to suppress this warning.
``` ```
**Solution:** **Solution1:**
Set SQLALCHEMY_TRACK_MODIFICATIONS to **False/True** at line 789 in flask_sqlalchemy/\_\_init\_\_.py Set SQLALCHEMY_TRACK_MODIFICATIONS to **False/True** at line 789 in flask_sqlalchemy/\_\_init\_\_.py
```python ```python
...@@ -137,3 +137,6 @@ $ flask run ...@@ -137,3 +137,6 @@ $ flask run
789 'SQLALCHEMY_TRACK_MODIFICATIONS', False 789 'SQLALCHEMY_TRACK_MODIFICATIONS', False
790 ) 790 )
``` ```
**Solution2(Preferred):**
Add `SQLALCHEMY_TRACK_MODIFICATIONS` in `config.py` ecb8e6209073941c6ba554b812496020b1c59982
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