I am trying to make a blog app using django, and i want to use environment variables to hide sensitive information. I tried putting my data in .bash_profile and access it as described in the photos attached, however, it does not seem to be working. My photos and information only loads if I hardcode the data. I don’t know how to fix this problem, please help.
How I am refering to the data in .bash_profile:
AWS_ACCESS_KEY_ID = os.environ.get(‘AWS_ACCESS_KEY_ID’)
fyi, I am using ubuntu 18 and vs code to code!
Note: I made sure to import os in settings.py