From 7bf45f2a06ecdc71baef43f7928b75c667b8fba5 Mon Sep 17 00:00:00 2001 From: p6fxi93qh <1240380517@qq.com> Date: Sat, 12 Oct 2024 22:12:53 +0800 Subject: [PATCH] Update settings.py --- myproject/myproject/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/myproject/myproject/settings.py b/myproject/myproject/settings.py index e6fa989..eafffb5 100644 --- a/myproject/myproject/settings.py +++ b/myproject/myproject/settings.py @@ -25,7 +25,8 @@ SECRET_KEY = "django-insecure-klu4il1-gzuan***r%r5$yygd$jwpgpol#3@_r#qb$^m3j1^kn # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +#ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['localhost', '0.0.0.0:8000', '10.133.8.121','127.0.0.1'] # Application definition