config for autoreload templates in django
The snippet can be accessed without any authentication.
Authored by
David Douard
Edited
diff --git a/swh/web/settings/common.py b/swh/web/settings/common.py
index 0fa9222a..8595048d 100644
--- a/swh/web/settings/common.py
+++ b/swh/web/settings/common.py
@@ -137,8 +137,13 @@ TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": SWH_APP_TEMPLATES,
- "APP_DIRS": True,
+ #"APP_DIRS": True,
"OPTIONS": {
+ #"debug": True,
+ "loaders": [
+ "django.template.loaders.filesystem.Loader",
+ "django.template.loaders.app_directories.Loader",
+ ],
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
Please register or sign in to comment