rsnarsna commited on
Commit ·
1e55931
1
Parent(s): 90b3259
db connectations
Browse files- backend/main.py +1 -1
- backend/requirements.txt +2 -1
backend/main.py
CHANGED
|
@@ -18,7 +18,7 @@ from sqlalchemy.orm import sessionmaker, declarative_base, relationship, Session
|
|
| 18 |
# ==========================================
|
| 19 |
# Database Configuration
|
| 20 |
# ==========================================
|
| 21 |
-
SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL", "
|
| 22 |
|
| 23 |
engine = create_engine(SQLALCHEMY_DATABASE_URL)
|
| 24 |
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
|
|
|
| 18 |
# ==========================================
|
| 19 |
# Database Configuration
|
| 20 |
# ==========================================
|
| 21 |
+
SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL", "postgresql://postgres:gVgyOv6DL9vkzGmh@db.nujbaaxesubgawnazmza.supabase.co:5432/postgres")
|
| 22 |
|
| 23 |
engine = create_engine(SQLALCHEMY_DATABASE_URL)
|
| 24 |
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
backend/requirements.txt
CHANGED
|
@@ -35,4 +35,5 @@ starlette==0.52.1
|
|
| 35 |
typing-inspection==0.4.2
|
| 36 |
typing_extensions==4.15.0
|
| 37 |
urllib3==2.6.3
|
| 38 |
-
uvicorn==0.41.0
|
|
|
|
|
|
| 35 |
typing-inspection==0.4.2
|
| 36 |
typing_extensions==4.15.0
|
| 37 |
urllib3==2.6.3
|
| 38 |
+
uvicorn==0.41.0
|
| 39 |
+
psycopg2-binary
|