title: Django returns error 500 when DEBUG = False, ignores ALLOWED_HOSTS
body: <p>I have django app which always returns error 500 page.
  I have following code in settings.py:</p>
  
  <pre><code>import os
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  try:
      from local_settings import *
  except ImportError, e:
      pass
  </code></pre>
  
  <p>and local_settings.py:</p>
  
  <pre><code>DEBUG = False
  ALLOWED_HOSTS = ['*']
  </code></pre>
  
  <p>I have this on local machine, it always returns error code 500, no matter what I type in ALLOWED_HOSTS</p>