Update app/database.py
This commit is contained in:
parent
570ce55439
commit
619083bed5
1 changed files with 4 additions and 1 deletions
|
|
@ -5,7 +5,10 @@ from dotenv import load_dotenv
|
|||
|
||||
load_dotenv()
|
||||
|
||||
DATABASE_URL = "postgres://admin:33Pippin!!;@voo8ccgwss0ks0000occko4s:5432/postgres"
|
||||
# URL-encode the password
|
||||
password = quote_plus("33Pippin!!;")
|
||||
DATABASE_URL = f"postgresql+psycopg2://admin:{password}@voo8ccgwss0ks0000occko4s:5432/postgres"
|
||||
|
||||
|
||||
engine = create_engine(DATABASE_URL)
|
||||
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
||||
|
|
|
|||
Loading…
Reference in a new issue