SQLAchemy 'No application found. Either work inside a view function or push'
问题 Ello ello, I found similar questions on the bug i'm facing, and tried the solutions offered but it didn't work for me. I'm trying to separate out my models in a different directory and import them into the app.py When I try to import the db into the python terminal, i'm getting the no application found. app.py code from flask import Flask from flask_restful import Resource, Api # from flask_sqlalchemy import SQLAlchemy from routes import test, root, user from models.todo import db app = Flask