title: Django settings based on IP or hostname
body: <p>I'd like to have something in my settings like</p>
  
  <pre><code>if ip in DEV_IPS:
     SOMESETTING = 'foo'
  else:
     SOMESETTING = 'bar'
  </code></pre>
  
  <p>Is there an easy way to get the ip or hostname - also - is this is a bad idea ?</p>