Move "base" template to top level

This commit is contained in:
Adam Goldsmith 2020-12-14 13:22:14 -05:00
parent 99ee47052c
commit f475e1bd0e
5 changed files with 5 additions and 4 deletions

View File

@ -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': [

View File

@ -1,4 +1,4 @@
{% extends "./base.djhtml" %}
{% extends "base.djhtml" %}
{% block title %} RecMaint {% endblock %}

View File

@ -1,4 +1,4 @@
{% extends "./base.djhtml" %}
{% extends "base.djhtml" %}
{% block title %} {{ tool.name }} - {{ task.name }} | RecMaint {% endblock %}

View File

@ -1,4 +1,4 @@
{% extends "./base.djhtml" %}
{% extends "base.djhtml" %}
{% block title %} {{ tool }} {% endblock %}