| import os | |
| class Settings: | |
| HOST = os.getenv("API_HOST", "localhost") | |
| PORT = int(os.getenv("API_PORT", 8001)) | |
| def BASE_URL(self): | |
| return f"http://{self.HOST}:{self.PORT}" | |
| settings = Settings() | |
| import os | |
| class Settings: | |
| HOST = os.getenv("API_HOST", "localhost") | |
| PORT = int(os.getenv("API_PORT", 8001)) | |
| def BASE_URL(self): | |
| return f"http://{self.HOST}:{self.PORT}" | |
| settings = Settings() | |