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.
微軟準備淘汰 SHA-1
2.
Windows Server 2019 Update 2010,20H2
3.
Jmeter+Selenium結合使用(完整篇)
4.
windows服務基礎
5.
mysql 查看線程及kill線程
6.
DevExpresss LookUpEdit詳解
7.
GitLab簡單配置SSHKey與計算機建立連接
8.
桶排序(BucketSort)
9.
桶排序(BucketSort)
10.
C++ 桶排序(BucketSort)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<