import os
from pathlib import Path
from dotenv import load_dotenv
env_path=Path('.') / '.env'
load_dotenv(dotenv_path=env_path)

print(env_path)
print(os.getenv("POSTGRES_USER"))
class Settings:
    PROJRECT_TITLE:str="Jobboard"
    PROJECT_VERSION:str = "0.1.1"
    POSTGRES_USER=os.getenv("POSTGRES_USER")
    POSTGRES_PASSWORD=os.getenv("POSTGRES_PASSWORD")
    POSTGRES_SERVER=os.getenv("POSTGRES_SERVER")
    POSTGRES_PORT=os.getenv("POSTGRES_PORT")
    POSTGRES_DB=os.getenv("POSTGRES_DB")
    DATABASE_URL=f"postgresql://{POSTGRES_USER}:{POSTGRES_PASSWORD}@{POSTGRES_SERVER}:{POSTGRES_PORT}/{POSTGRES_DB}"
settings=Settings()