Update database.py
Browse files- database.py +2 -2
database.py
CHANGED
@@ -20,8 +20,8 @@ SQLALCHEMY_DATABASE_URL = db_url # "ibmabdulsalam.mysql.pythonanywhere-services.
|
|
20 |
#SQLALCHEMY_DATABASE_URL = db_url #"postgresql://user:password@postgresserver/db"
|
21 |
|
22 |
engine = create_engine(
|
23 |
-
SQLALCHEMY_DATABASE_URL, echo=True
|
24 |
-
)
|
25 |
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
26 |
|
27 |
Base = declarative_base()
|
|
|
20 |
#SQLALCHEMY_DATABASE_URL = db_url #"postgresql://user:password@postgresserver/db"
|
21 |
|
22 |
engine = create_engine(
|
23 |
+
SQLALCHEMY_DATABASE_URL, echo=True
|
24 |
+
)#, connect_args={"check_same_thread": False}
|
25 |
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
26 |
|
27 |
Base = declarative_base()
|