From 971e6643dab599a99f646dac3d00bc8166907eb6 Mon Sep 17 00:00:00 2001 From: Raruto Date: Fri, 19 Aug 2022 09:21:37 +0200 Subject: [PATCH] update TEMPLATES DIRS within settings_docker.py --- config/g3w-suite/settings_docker.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/g3w-suite/settings_docker.py b/config/g3w-suite/settings_docker.py index aa9c87325..3670c0c58 100644 --- a/config/g3w-suite/settings_docker.py +++ b/config/g3w-suite/settings_docker.py @@ -2,6 +2,11 @@ # Destination: /code/g3w-admin/base/settings/local_settings.py # Read connection parameters from environment import os +from base.settings.base import TEMPLATES, BASE_DIR + +# Allows to load custom templates from your docker volume (eg. "./config/g3w-suite/overrides/templates:/code/templates:ro") +# see: https://docs.djangoproject.com/en/2.2/howto/overriding-templates/ +TEMPLATES[0]['DIRS'].append(os.path.join(BASE_DIR, '../../templates')) G3WADMIN_PROJECT_APPS = []