Testys commited on
Commit
8c96228
1 Parent(s): 64d8204

Update core/database.py

Browse files
Files changed (1) hide show
  1. core/database.py +3 -2
core/database.py CHANGED
@@ -2,11 +2,12 @@
2
  from sqlalchemy import create_engine
3
  from sqlalchemy.ext.declarative import declarative_base
4
  from sqlalchemy.orm import sessionmaker
 
5
 
6
- SQLALCHEMY_DATABASE_URL = "postgresql://user:password@localhost/dbname"
7
 
8
  engine = create_engine(
9
- SQLALCHEMY_DATABASE_URL,
10
  pool_size=5,
11
  pool_pre_ping=True,
12
  pool_recycle=300,
 
2
  from sqlalchemy import create_engine
3
  from sqlalchemy.ext.declarative import declarative_base
4
  from sqlalchemy.orm import sessionmaker
5
+ from core.config import get_settings
6
 
7
+ settings = get_settings()
8
 
9
  engine = create_engine(
10
+ settings.DATABASE_URL,
11
  pool_size=5,
12
  pool_pre_ping=True,
13
  pool_recycle=300,