Closed VallariAg closed 1 year ago
APISettings() will load all values from .env file as APISettings's attributes. These can be imported in all other modules, instead of using load_dotenv in every module. ref: https://fastapi.tiangolo.com/advanced/settings/#reading-a-env-file
This also fixes the issue of missing value of PADDLES_URL in services/helpers.py
@zmc using env_file: in docker-compose worked! thank you! :)
env_file:
i have explained the problem that this issue solves in #38
APISettings() will load all values from .env file as APISettings's attributes. These can be imported in all other modules, instead of using load_dotenv in every module. ref: https://fastapi.tiangolo.com/advanced/settings/#reading-a-env-file
This also fixes the issue of missing value of PADDLES_URL in services/helpers.py