I set an environment variable that I want to access in my Python application. How do I get its value?
You can also try this
First, install python-decouple
python-decouple
pip install python-decouple
import it in your file
from decouple import config
Then get the env variable
SECRET_KEY=config('SECRET_KEY')
Read more about the python library here