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.
[最佳實踐]瞭解 Eolinker 如何助力遠程辦公
2.
katalon studio 安裝教程
3.
精通hibernate(harness hibernate oreilly)中的一個」錯誤「
4.
ECharts立體圓柱型
5.
零拷貝總結
6.
6 傳輸層
7.
Github協作圖想
8.
Cannot load 32-bit SWT libraries on 64-bit JVM
9.
IntelliJ IDEA 找其歷史版本
10.
Unity3D(二)遊戲對象及組件
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<