I am trying to access and fetch (get) value of OS Environment variable into settings.py and while debugging application I get None value for that record. Here are more details: There are some important/secret keys which can’t be shared in code so those are exported in OS environment variables. Whenever I do echo $KEY_VAL from linux terminal or python shell