When starting my Django app on Azure I get a log message saying "Invalid HTTP_HOST header: " then some ip and "You may need to add" sayd ip "to allowed hosts". Now I assumed to put that ip hard coded is not the answer but tried anyway. I then redeployed and got the same message again but with another Ip. My ALLOWED_HOSTS are
[os.environ['WEBSITE_HOSTNAME'], os.environ['DB_SERVER'].
Can I get that ip dynamically and add it to allowed hosts?