Impossible to access Heroku config vars from python code Impossible to access Heroku config vars from python code heroku heroku

Impossible to access Heroku config vars from python code


I am the original OP. Turns out the problem was the way I was accessing the remote terminal session. The correct way to do it to have all the config vars accessible is

heroku run bash

as opposed to

heroku ps:exec


You can set the config vars for a Heroku application in the settings of the App. Click the Settings Tab then navigate to the Config Vars section. Click Reveal Config Vars and enter the key pair values for your variables.

These will get injected into your application.