old_contents: """
  Washington Post setting overrides for production
  """
  
  import requests
  
  # pylint: disable=wildcard-import
  # pylint: disable=unused-wildcard-import
  
  from muckrock.settings.production import *
  
  # TODO Remove me once we've verified email sending in production
  EMAIL_BACKEND = "muckrock.settings.staging.HijackMailgunBackend"
  BANDIT_EMAIL = os.environ.get("BANDIT_EMAIL", "staging@muckrock.com")
  BANDIT_WHITELIST = [
      e.strip() for e in os.environ.get("BANDIT_WHITELIST", "").split(",") if e.strip()
  ]
  
  CONSTANCE_REDIS_CONNECTION = {
      'host': os.environ.get("REDIS_HOST"),
      'port': 6379,
  }
  
  SECURE_SSL_REDIRECT = False
  
  # This gets the IP address of the EC2 instance the task is
  # running on and adds it to allowed_hosts so the health
  # check will work
  try:
      EC2_IP = requests.get('http://169.254.169.254/latest/meta-data/local-ipv4').text
      ALLOWED_HOSTS.append(EC2_IP)
  except requests.exceptions.RequestException:
      pass
  
new_contents: """
  Washington Post setting overrides for production
  """
  
  import requests
  
  # pylint: disable=wildcard-import
  # pylint: disable=unused-wildcard-import
  
  from muckrock.settings.production import *
  
  # TODO Remove me once we've verified email sending in production
  INSTALLED_APPS += ("bandit",)
  EMAIL_BACKEND = "muckrock.settings.staging.HijackMailgunBackend"
  BANDIT_EMAIL = os.environ.get("BANDIT_EMAIL", "staging@muckrock.com")
  BANDIT_WHITELIST = [
      e.strip() for e in os.environ.get("BANDIT_WHITELIST", "").split(",") if e.strip()
  ]
  
  CONSTANCE_REDIS_CONNECTION = {
      'host': os.environ.get("REDIS_HOST"),
      'port': 6379,
  }
  
  SECURE_SSL_REDIRECT = False
  
  # This gets the IP address of the EC2 instance the task is
  # running on and adds it to allowed_hosts so the health
  # check will work
  try:
      EC2_IP = requests.get('http://169.254.169.254/latest/meta-data/local-ipv4').text
      ALLOWED_HOSTS.append(EC2_IP)
  except requests.exceptions.RequestException:
      pass
  
subject: add bandit to installed apps