Introduction
Environment variables keep secret information safe outside your code. This helps protect passwords and keys from being shared by mistake.
When you need to store a database password securely.
When you want to keep API keys hidden from your code repository.
When deploying your Django app to different servers with different secrets.
When sharing your code but not your private keys or passwords.