On cache les templates

This commit is contained in:
Jean-Marie Favreau 2025-01-31 17:03:43 +01:00
parent 0f82511bb8
commit 7348b34b33

View File

@ -98,8 +98,7 @@ ROOT_URLCONF = "agenda_culturel.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"APP_DIRS": True,
"DIRS": [BASE_DIR / "templates"],
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
@ -107,6 +106,15 @@ TEMPLATES = [
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
],
"loaders": [
(
"django.template.loaders.cached.Loader",
[
"django.template.loaders.filesystem.Loader",
"django.template.loaders.app_directories.Loader",
],
),
]
},
},
]