访问django项目报错DisallowedHost : Invalid HTTP_HOST header
django运行第一个项目HelloWorld,执行脚本如下:pythonmanage.pyrunserver0.0.0.0.8000报错:DisallowedHost:InvalidHTTP_HOSTheader:'172.19.23.9:8000'.Youmayneedtoaddu'172.19.23.9:8000'toALLOWED_HOSTS.原因在于在项目目录下的settting.py有