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.
《給初學者的Windows Vista的補遺手冊》之074
2.
CentoOS7.5下編譯suricata-5.0.3及簡單使用
3.
快速搭建網站
4.
使用u^2net打造屬於自己的remove-the-background
5.
3.1.7 spark體系之分佈式計算-scala編程-scala中模式匹配match
6.
小Demo大知識-通過控制Button移動來學習Android座標
7.
maya檢查和刪除多重面
8.
Java大數據:大數據開發必須掌握的四種數據庫
9.
強烈推薦幾款IDEA插件,12款小白神器
10.
數字孿生體技術白皮書 附下載地址
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<