在setting.py下的ALLOWED_HOSTS=['*']添加‘*’就可以解决显示不出来的问题。
解决:Invalid HTTP_HOST header: '192.168.56.1:8001'. You may need to add '192.168.56.1' to ALLOWED_HOSTS....
用python3 manage.py runserver 0.0.0.0:8000命令运行django程序后,通过浏览器访问服务器网址的8000端口,出现访问错误,报错为 Invalid HTTP_HOST header: ‘xxx.xx.xxx.xxx:8000’. You may need to...
Invalid HTTP_HOST header: 'xxx.xx.xxx.xxx:8000'. You may need to add 'xxx.xx' to ALLOWED_HOSTS - buki26的博客 - CSDN博客 https://blog.csdn.net/buki26/article/details/80745701
Invalid HTTP_HOST head...