This feels like a dumb question, but how should I be calling app-level environment variables from a python script hosted on app platform? Specifically, I can’t seem to pass the original value of the environment variable to my script after I set the variable to “encrypted” in the app’s control panel. That is, it appears that the encrypted value of the environment variable is getting passed to my app, which is strange because the unencrypted value shows up when I look it up on the console. I’m using this code:
PASSKEY = os.environ.get('PASSKEY')
Any idea what’s going on?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.