I have some config vars set on Heroku as described here: https://devcenter.heroku.com/articles/config-vars. When I run:
heroku config
I see the config var in the list:
COMPRESS_OFFLINE: True
and I can run
heroku config:get COMPRESS_OFFLINE
and I get:
True
In my Django settings.py, I have:
import os
COMPRESS_OFFLINE = os.environ['COMPRESS_OFFLINE']
This is how the article linked above tells you to access Heroku config variables in Django. I have this config var set in my local .env file, and I can run foreman locally. But, when I deploy to Heroku, I get this error during deploy:
KeyError: 'COMPRESS_OFFLINE'
! Push rejected, failed to compile Python app
I have the feeling I'm missing something painfully obvious, any suggestions?