Django Invalid HTTP_HOST Header | ALLOWED_HOSTS
Django also allows the fully qualified domain name of entries. some browsers include the Django invalid HTTP_HOST which Django strips performing host validation.
The error log is straightforward. as it suggested, You need to add 127.0.0.1 to your ALLOWED_HOSTS setting.
ALLOWED_HOSTS is empty, the host is validated against [‘localhost’, ‘127.0.0.1’].
#settings.py
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
== OR ==
ALLOWED_HOSTS = ['*']
Then restart your server afterwards.