From 89bf732d32744093b6b62403215983b1b99439b6 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 4 Mar 2025 19:31:14 +0800 Subject: [PATCH] update --- api/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/settings.py b/api/settings.py index a840ecf..145bd4b 100644 --- a/api/settings.py +++ b/api/settings.py @@ -29,7 +29,7 @@ DEBUG = os.getenv("ENV") != "production" if DEBUG: ALLOWED_HOSTS = ["localhost", "127.0.0.1"] else: - ALLOWED_HOSTS = ["webapi.xuyue.cc"] + ALLOWED_HOSTS = ["web.xuyue.cc"] # Application definition @@ -141,7 +141,9 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/5.1/howto/static-files/ -STATIC_URL = "static/" +STATIC_URL = "django_static/" + +STATIC_ROOT = BASE_DIR / "static" # Default primary key field type # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field