According to the stacktrace the error relies in the type of SQLALCHEMY_DATABASE_URI
, which should be a string not and not a Connection object.
Examples:
"sqlite:////tmp/test.db"
"mysql://username:[email protected]/db"
CLICK HERE to find out more related problems solutions.