Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upbpython issues with Flask-SQLAlchemy session #676
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have been trying to find out why I am having some flask-sqlalchemy session handling issues while using bpython. Here is the issue in action:
Upon further inspection, it seems that the
db.session.add()call in bpython is creating a new session entirely and placing the user instance in that one:and attempting to again add the instance to the db.session results in a conflict:
Any idea why this seems to only happen in bpython and not python/ipython?