title: ALLOWED_HOSTS not working in my Django App deployed to Elastic Beanstalk
body: <p>I deployed a Django App to AWS Elastic Beanstalk and I'm getting "Invalid HTTP_HOST header" error even when I've added it to my allowed hosts settings.</p>
  
  <p>I'm getting this error:</p>
  
  <pre><code>Invalid HTTP_HOST header: 'recordings-env.kf4qfzaijd.us-west-2.elasticbeanstalk.com'. You may need to add 'recordings-env.kf4qfzaijd.us-west-2.elasticbeanstalk.com' to ALLOWED_HOSTS.
  </code></pre>
  
  <p>This is what I have in my settings.py</p>
  
  <p><code>settings.py</code>:</p>
  
  <pre><code>ALLOWED_HOSTS = [
      '127.0.0.1',
      'localhost',
      '.amazonaws.com',
      '.elasticbeanstalk.com',
      'recordings-env.kf4qfzaijd.us-west-2.elasticbeanstalk.com',
  ]
  </code></pre>
  
  <p>I think the problem is that my settings aren't being updated, because isn't working either if I put <code>ALLOWED_HOSTS = ['*']</code>. I left <code>DEBUG = True</code> and in request information I'm getting: <code>ALLOWED_HOSTS: ['localhost']</code></p>
  
  <p>after modifying it I run eb deploy without errors.</p>