Open FossenWang opened 11 months ago
from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() app = Flask(__name__) app.config['SQLALCHEMY_BINDS'] = {'x': 'sqlite:///:memory:'} db.init_app(app) with app.app_context(): print(db) # KeyError: None
Environment:
Thanks for the report! I've proposed a fix at https://github.com/pallets-eco/flask-sqlalchemy/pull/1296/files
Environment: