That's what we have in Corey's code too:
https://github.com/CoreyMSchafer/code_sn...askblog.py
I just did a copy/paste and after running this second code to create a database got this:
here it is:
https://github.com/CoreyMSchafer/code_sn...askblog.py
I just did a copy/paste and after running this second code to create a database got this:
Error:C:\Python37\lib\site-packages\flask_sqlalchemy\__init__.py:835: 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.
'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '
on stackoverflow I found that solution is to add SQLALCHEMY_TRACK_MODIFICATIONS = False
to app configuration but I'm not sure how to do that. I got syntax error when tried to add it in some way. Any suggestion?here it is:
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True