Update database.py
Browse files- database.py +2 -2
database.py
CHANGED
@@ -2,8 +2,8 @@ from sqlalchemy import create_engine
|
|
2 |
from sqlalchemy.ext.declarative import declarative_base
|
3 |
from sqlalchemy.orm import sessionmaker
|
4 |
|
5 |
-
SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db"
|
6 |
-
|
7 |
|
8 |
engine = create_engine(
|
9 |
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
|
|
|
2 |
from sqlalchemy.ext.declarative import declarative_base
|
3 |
from sqlalchemy.orm import sessionmaker
|
4 |
|
5 |
+
#SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db"
|
6 |
+
SQLALCHEMY_DATABASE_URL = DATABASE_URL #"postgresql://user:password@postgresserver/db"
|
7 |
|
8 |
engine = create_engine(
|
9 |
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
|