title: Django ignoring DEBUG value when I use os.environ, why?
body: <p>In my Django settings I have the following:</p>
  
  <blockquote>
    <p>DEBUG = os.environ['DEBUG_VALUE']</p>
  </blockquote>
  
  <p>Where <code>DEBUG_VALUE = False</code></p>
  
  <p>However, Django continues to show full error messages when I do this. If I manual add <code>DEBUG = False</code> it works and shows 500 error. </p>
  
  <p>For some reason Django is ignoring it when I use the <code>os.environ</code> value. </p>
  
  <p>I have confirmed <code>DEBUG_VALUE</code> is False but outputting to a file.</p>
  
  <p>I have even tried:</p>
  
  <blockquote>
    <p>DEBUG = bool(os.environ['DEBUG_VALUE'])</p>
  </blockquote>
  
  <p>and still shows full errors. </p>