Update settings.py

This commit is contained in:
ferocknew 2023-12-07 12:37:25 +08:00 committed by GitHub
parent afe1ea1f75
commit 10e86e3e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
CSRF_TRUSTED_ORIGINS = [os.environ.get("CSRF_TRUSTED_ORIGINS", "None")]
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
@ -126,4 +126,4 @@ if DEBUG:
else:
STATIC_ROOT = os.path.join(BASE_DIR, 'static') # 新增
STATIC_ROOT = os.path.join(BASE_DIR, 'static') # 新增