shell
pip install python-decouple
DEBUG=True
SECRET_KEY=abc12345
DB_HOST=localhost
DB_PORT=5432
python
from decouple import config
python
debug = config('DEBUG')
python
db_host = config('DB_HOST')
python
config.set('DEBUG', 'False')
python
from decouple import Config
config = Config('.env.prod')
db_host = config('DB_HOST')