Skip to content Skip to sidebar Skip to footer

'engine' Object Has No Attribute 'drivername'

Im integrate Flask and SQLAlchemy in my application, but can understand, why at login page in getting big stacktrace. This errors now I'll taking after switching to Mac OS from Deb

Solution 1:

You are creating a second session, in addition to the one Flask-SQLAlchemy already produces for you, and you are interfering with Flask-SQLAlchemy.

Import db_connection and use db_connection.session instead of creating a new session.

Post a Comment for "'engine' Object Has No Attribute 'drivername'"