-
-
Save morkesiden/910b8ae841c7c6e8d97858d5f0ae15fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pydantic import BaseSettings | |
| class Settings(BaseSettings): | |
| DB_NAME: str = 'local' | |
| DB_USER: str = 'localuser' | |
| DB_HOST: str = "mysql.localhost.com" | |
| DB_PASSWORD: str | |
| API_ENDPOINT: str | |
| class Config: | |
| env_file = ".env" | |
| settings = Settings() | |
| print(settings.API_ENDPOINT) | |
| print(settings.DB_HOST) | |
| print(settings.DB_NAME) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment