[PYTHON] What to do when "Invalid HTTP_HOST header" appears in Django
Invalid HTTP_HOST header: '*.*.*.*:8000'. You may need to add '*.*.*.*' to ALLOWED_HOSTS.
- The received site name and the site name set in Django are different.
ALLOWED_HOSTS = 
- Set an asterisk (*).
- Used for verification because it is not desirable in terms of security.
ALLOWED_HOSTS = ['*']
- Specify the FQDN of the site to publish.
- This is desirable if the site name such as the production site has been decided.
ALLOWED_HOSTS = ['www.example.com']