Update database.py
Browse files- database.py +1 -1
database.py
CHANGED
@@ -20,7 +20,7 @@ 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 |
|
|
|
20 |
#SQLALCHEMY_DATABASE_URL = db_url #"postgresql://user:password@postgresserver/db"
|
21 |
|
22 |
engine = create_engine(
|
23 |
+
SQLALCHEMY_DATABASE_URL, echo=True)#, connect_args={"check_same_thread": False}
|
24 |
)
|
25 |
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
26 |
|