Configuring Environment Variables in Django
Configure environment variables to avoid having sensitive information about the application available in the code.
We'll cover the following...
It is a bad habit to have sensitive information about our application available in the code. This is the case for the SECRET_KEY
setting and the database settings in the settings.py
file of the project. This is especially bad because we’ve pushed the code to GitHub. Let’s correct this.
Environment variables
An environment variable is a variable whose value is set outside the running code of the program. ...