Closed 2327 closed 3 years ago
I'm facing the same problem. I'm running the flask application on my local windows machine. Works fine with local file system. Getting this error if I try to use SQLAlchemy.
I think you need to import the db object directly, I solved this by changing config.py
:
from X import db
# where X is the location where you define db = SQLAlchemy()
SESSION_SQLALCHEMY = db
@jlbgit explained it correctly.
Hello. I use docker - python:3.7-alpine, Flask-SocketIO==4.2.1, Flask-SQLAlchemy==2.4.1, Flask-Session==0.3.1. If i use SESSION_TYPE = 'filesystem' then all rigth. But if i use SESSION_TYPE = 'sqlalchemy' then i have problem.
.flaskenv:
config.py:
sockets.py:
Output: