title: How do I customize the Django settings when I'm running in Heroku?
body: <p>I'm using the Heroku cedar stack to run my Django application, and I'd like to have a different configuration when I'm running in Heroku than when I'm running locally.  For now, settings.py is my Heroku-specific configuration, and I'm using local_settings.py for non-Heroku stuff, and leaving it out of version control.</p>
  
  <p>However, I'd like to do something like this in settings.py:</p>
  
  <pre><code>if in_heroku:
     CONFIG_VAL='this'
  else:
     CONFIG_VAL='that'
  </code></pre>
  
  <p>Any ideas how to detect that I'm in the Heroku environment in settings.py?</p>