From 0c979380871613f7a8574ae94b46f1cb2a8b5273 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 23 Jun 2025 06:03:38 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E7=9F=A5=E8=AD=98?= =?UTF-8?q?=E5=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- %E7%9F%A5%E8%AD%98%E5%BA%AB.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/%E7%9F%A5%E8%AD%98%E5%BA%AB.md b/%E7%9F%A5%E8%AD%98%E5%BA%AB.md index b0e0231..19e73fc 100644 --- a/%E7%9F%A5%E8%AD%98%E5%BA%AB.md +++ b/%E7%9F%A5%E8%AD%98%E5%BA%AB.md @@ -14,6 +14,12 @@ mkdir djangotutorial && django-admin startproject mysite djangotutorial ## 啟動專案 +在 setting.py 將主機位置加入 ALLOWED_HOSTS + +```python3 +ALLOWED_HOSTS = [ "192.168.30.107" ] +``` + 開發模式 ```bash