Currently, I have a .env
file with development and production configuration, every time I have to comment out the development configuration in production and production configuration in development.How can I make it dynamic? I found the below resources,
But I am unable to understand how I will access it.Currently I am importing the env variables in settings.py and assigning it to the variable as below
DB_NAME = os.getenv("db_name")
DB_PASS = os.getenv("db_password")
I am using fastapi as framework.