title: django settings.py os.environ.get("X") not fetching correct values
body: <p>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:</p>
  
  <p>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 (manage.py shell) it prints the correct value of my environment variable.</p>
  
  <p>But while debugging application, it shows that value is None. I am using ipdb debugger and printing value with following command gives None as result:</p>
  
  <pre><code>p settings.KEY_VAL
  </code></pre>
  
  <p>In settings.py these are the sentences to get os env variable:</p>
  
  <pre><code>import os; KEY_VAL = os.environ.get("KEY_VAL")
  </code></pre>
  
  <p>I am using ZSH in my ubuntu system. Here is my ~/.zshrc file:</p>
  
  <pre><code>#
  # Executes commands at the start of an interactive session.
  #
  # Authors:
  #   Sorin Ionescu &lt;sorin.ionescu@gmail.com&gt;
  #
  
  # Source Prezto.
  if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
    source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
  fi
  
  export KEY_VAL='SOME_JUNK_VAL'
  
  
  fortune | cowsay | lolcat
  
  # Customize to your needs...
  </code></pre>
  
  <p>Note: I have changed variable name and value.</p>
  
  <p>But if you can help in anyway I appreciate it. </p>