Changed the way `ALLOWED_HOSTS` is obtained