Staging instance, all changes can be removed at any time

Skip to content
Snippets Groups Projects

config for autoreload templates in django

The snippet can be accessed without any authentication.
Authored by David Douard
Edited
754 B
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",
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment