Jul 23, 2017 · 1 min read
There is a great concept for managing the environment variables called “dotenv”, you put all your variables in a “.env” file in your project’s root folder, and they will be loaded as environment variables.
The file should be in gitignore — so it won’t sync to other developers or production.
There are some frameworks that supports it out of the box, and custom packages for the non supported ones.
In our case, there is a package for Django: https://github.com/jpadilla/django-dotenv