🔧 修复模板路径配置

- settings.py: 添加 templates 目录到 TEMPLATES DIRS
- 解决 TemplateDoesNotExist 错误
This commit is contained in:
2026-04-04 11:35:08 +08:00
parent 0f58e96336
commit c510a1e4b2

View File

@@ -64,7 +64,7 @@ ROOT_URLCONF = "meeting_room.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"DIRS": [BASE_DIR / "templates"],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [