Our great sponsors
-
python-dotenv
Reads key-value pairs from a .env file and can set them as environment variables. It helps in developing applications following the 12-factor principles.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
But there's no web UI to set them for your local dev version. But there are various Python modules that will read environment variables from a file named .env. I like https://github.com/theskumar/python-dotenv myself. So try using that - create a .env file for your local dev site and use dotenv instead of os.getenv() to read the environment variables.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- What is the best flow for accessing environment variables?
- Variables loaded by dotenv can't be imported in other files
- Connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user
- I don't know if I'm struggling with this because I don't know Packer, linux or both
- python-dotenv: Get and set values in your .env file in local and production servers.