JavaShuo
栏目
标签
【Error】启动django出现You may need to add 'x.x.x.x' to ALLOWED_HOSTS
时间 2021-07-11
栏目
Python
繁體版
原文
原文链接
Django运行访问项目出现的问题:DisallowedHost at / Invalid HTTP_HOST header: 按错误提示去修改内容,打开 vim project-name/settings.py 编辑这一行 ALLOWED HOSTS = [‘ip’,‘域名’,‘’], 添加上你的ip重新运行后正常访问。 请注意每次开机时自己的IP是否被重新分配。
>>阅读原文<<
相关文章
1.
Invalid HTTP_HOST header: 'xxx.xxx:8000'. You may need to add 'xxx.xx' to ALLOWED_HOSTS
2.
运行django项目出现Invalid HTTP_HOST header: '192.168.1.111:8000'. You may need to add '192....
3.
You may need to adjust the proxy settings in Gradle.
4.
You need to know curry
5.
Error: unknown host ‘android.oa.com'.You may need to adjust the proxy setting in Gradle.
6.
Failed to resolve loader: less-loader You may need to install it 解决方法!
7.
You may need to configure your browser or application to trust the Charles Root Certificate.
8.
You may need an appropriate loader to handle this file type.
9.
Communication error. Please use diagnostic mode to check connectivity. You need to have outbound acc
10.
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration
更多相关文章...
•
启动MySQL服务
-
MySQL教程
•
SVN 启动模式
-
SVN 教程
•
RxJava操作符(五)Error Handling
•
☆基于Java Instrument的Agent实现
相关标签/搜索
to@8
to......443
x.x.x.x
the way to go
C# to IL
add
error
启动
现出
出现
Python
NoSQL教程
PHP教程
SQLite教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
python的安装和Hello,World编写
2.
重磅解读:K8s Cluster Autoscaler模块及对应华为云插件Deep Dive
3.
鸿蒙学习笔记2(永不断更)
4.
static关键字 和构造代码块
5.
JVM笔记
6.
无法启动 C/C++ 语言服务器。IntelliSense 功能将被禁用。错误: Missing binary at c:\Users\MSI-NB\.vscode\extensions\ms-vsc
7.
【Hive】Hive返回码状态含义
8.
Java树形结构递归(以时间换空间)和非递归(以空间换时间)
9.
数据预处理---缺失值
10.
都要2021年了,现代C++有什么值得我们学习的?
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Invalid HTTP_HOST header: 'xxx.xxx:8000'. You may need to add 'xxx.xx' to ALLOWED_HOSTS
2.
运行django项目出现Invalid HTTP_HOST header: '192.168.1.111:8000'. You may need to add '192....
3.
You may need to adjust the proxy settings in Gradle.
4.
You need to know curry
5.
Error: unknown host ‘android.oa.com'.You may need to adjust the proxy setting in Gradle.
6.
Failed to resolve loader: less-loader You may need to install it 解决方法!
7.
You may need to configure your browser or application to trust the Charles Root Certificate.
8.
You may need an appropriate loader to handle this file type.
9.
Communication error. Please use diagnostic mode to check connectivity. You need to have outbound acc
10.
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration
>>更多相关文章<<