Skip to content

Commit

Permalink
try postgres env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
JdFSilva committed Oct 23, 2024
1 parent 62779a5 commit 956b963
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions labs/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
COHERE_API_KEY = os.environ.get("COHERE_API_KEY")
GROQ_API_KEY = os.environ.get("GROQ_API_KEY")

DATABASE_HOST = os.environ.get("DATABASE_HOST")
DATABASE_USER = os.environ.get("DATABASE_USER")
DATABASE_PASS = os.environ.get("DATABASE_PASS")
DATABASE_NAME = os.environ.get("DATABASE_NAME")
DATABASE_PORT = os.environ.get("DATABASE_PORT")
DATABASE_HOST = os.environ.get("POSTGRES_HOST")
DATABASE_USER = os.environ.get("POSTGRES_USER")
DATABASE_PASS = os.environ.get("POSTGRES_PASS")
DATABASE_NAME = os.environ.get("POSTGRES_NAME")
DATABASE_PORT = os.environ.get("POSTGRES_PORT")
DATABASE_URL = f"postgresql://{DATABASE_USER}:{DATABASE_PASS}@{DATABASE_HOST}:{DATABASE_PORT}/{DATABASE_NAME}"
print(f"{DATABASE_URL=}")

Expand Down

0 comments on commit 956b963

Please sign in to comment.