from app import app, db
from app.models import User, Listing

@app.shell_context_processor
def make_shell_context():
    with app.app_context():
        return {'db': db, 'User': User, 'Listing': Listing}