You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Exercise 21: Applying Database Insertion, if you will use just a Python console in PyCharm you will catch an exception: RuntimeError: No application found. Either work inside a view function or push an application context. See http://flask-sqlalchemy.pocoo.org/contexts/.
The easiest way to avoid this is to use not just the Python console, but flask shell . Just type in the PyCharm terminal - flask shell, it works in the application context.