diff --git a/recmaint/settings.py b/recmaint/settings.py index 7868b56..b006d46 100644 --- a/recmaint/settings.py +++ b/recmaint/settings.py @@ -10,6 +10,7 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ +import os from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. @@ -55,7 +56,7 @@ ROOT_URLCONF = 'recmaint.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/tasks/templates/tasks/index.djhtml b/tasks/templates/tasks/index.djhtml index 840cee4..c66d0bd 100644 --- a/tasks/templates/tasks/index.djhtml +++ b/tasks/templates/tasks/index.djhtml @@ -1,4 +1,4 @@ -{% extends "./base.djhtml" %} +{% extends "base.djhtml" %} {% block title %} RecMaint {% endblock %} diff --git a/tasks/templates/tasks/taskDetail.djhtml b/tasks/templates/tasks/taskDetail.djhtml index 0d84f5b..ad4f9f7 100644 --- a/tasks/templates/tasks/taskDetail.djhtml +++ b/tasks/templates/tasks/taskDetail.djhtml @@ -1,4 +1,4 @@ -{% extends "./base.djhtml" %} +{% extends "base.djhtml" %} {% block title %} {{ tool.name }} - {{ task.name }} | RecMaint {% endblock %} diff --git a/tasks/templates/tasks/toolDetail.djhtml b/tasks/templates/tasks/toolDetail.djhtml index 06193f7..3c48957 100644 --- a/tasks/templates/tasks/toolDetail.djhtml +++ b/tasks/templates/tasks/toolDetail.djhtml @@ -1,4 +1,4 @@ -{% extends "./base.djhtml" %} +{% extends "base.djhtml" %} {% block title %} {{ tool }} {% endblock %} diff --git a/tasks/templates/tasks/base.djhtml b/templates/base.djhtml similarity index 100% rename from tasks/templates/tasks/base.djhtml rename to templates/base.djhtml