django error:DisallowedHost: Invalid HTTP_HOST header: ''. You may need to add u'' to ALLOWED_HOST
2017-06-20 22:38
561 查看
The error log is straightforward. As it suggested,You need to add 198.211.99.20 to your ALLOWED_HOSTS setting.In your project settings.py file,set ALLOWED_HOSTS like this :
ALLOWED_HOSTS = ['198.211.99.20', 'localhost', '127.0.0.1']For further reading, Read from here.
相关文章推荐
- DisallowedHost: Invalid HTTP_HOST header: '192.168.0.136'. You may need to add u'192.168.0.136' to A
- 让其他机器访问本机的django项目 & 处理 DisallowedHost at / Invalid HTTP_HOST header: '...'. You may need
- django Invalid HTTP_HOST header: 'x.x.x.x:xxxx'. You may need to add u'x.x.x.x' to ALLOWE
- django_Invalid HTTP_HOST header: '192.168.163.140'. You may need to add '192.168.163.140' to ALLOWED
- 访问Django项目出现DisallowedHost at / Invalid HTTP_HOST header问题
- 访问django项目报错DisallowedHost : Invalid HTTP_HOST header
- Django运行访问项目出现的问题:DisallowedHost at / Invalid HTTP_HOST header
- Django运行访问项目出现的问题:DisallowedHost at / Invalid HTTP_HOST header
- Django:Exception Value: Invalid HTTP_HOST header 解决方法
- Web service request SetParameters to Report Server http://host/reportserver failed. Error: 请求因 HTTP 状态 401 失败: Unauthorized
- ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
- ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL
- ERROR 1130: Host xxx is not allowed to connect to this MySQL server
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- IT忍者神龟之mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决
- Web service request SetParameters to Report Server http://host/reportserver failed. Error: 请求因 HTTP 状态 401 失败: Unauthorized
- ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
- mysql数据库错误ERROR 1130:Host '' is not allowed to connect to this mysql server
- ERROR 1130: Host 192.168.88.160 is not allowed to connect to this MySQL server
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法