Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes arches-level template overrides #11668
Browse files Browse the repository at this point in the history
chrabyrd committed Dec 12, 2024
1 parent e46e0ca commit 63ff4c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arches/settings_utils.py
Original file line number Diff line number Diff line change
@@ -96,13 +96,18 @@ def build_templates_config(
"""
directories = []
try:
# allows for manual additions to template overrides
if additional_directories:
for additional_directory in additional_directories:
directories.append(additional_directory)

# allows for application-level overrides of generic Django templates
if app_root:
directories.append(os.path.join(app_root, "templates"))

# forces Arches-level overrides of generic Django templates
directories.append(os.path.join(os.path.realpath(settings.ROOT_DIR), "app", "templates"))

return [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",

0 comments on commit 63ff4c6

Please sign in to comment.