diff --git a/app/database.py b/app/database.py index e898f6b..80bcc7e 100644 --- a/app/database.py +++ b/app/database.py @@ -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)