Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels