Python-API-Development-Fundamentals icon indicating copy to clipboard operation
Python-API-Development-Fundamentals copied to clipboard

Update script.txt

Open GoldJav opened this issue 4 years ago • 0 comments

If you don't update the context inside the app, db.session.add(user) will fail with error:

RuntimeError: No application found. Either work inside a view function or push an application context. See http://flask-sqlalchemy.pocoo.org/contexts/.

GoldJav avatar Dec 09 '21 16:12 GoldJav