Move "base" template to top level
This commit is contained in:
parent
99ee47052c
commit
f475e1bd0e
@ -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': [
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "./base.djhtml" %}
|
||||
{% extends "base.djhtml" %}
|
||||
|
||||
{% block title %} RecMaint {% endblock %}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "./base.djhtml" %}
|
||||
{% extends "base.djhtml" %}
|
||||
|
||||
{% block title %} {{ tool.name }} - {{ task.name }} | RecMaint {% endblock %}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "./base.djhtml" %}
|
||||
{% extends "base.djhtml" %}
|
||||
|
||||
{% block title %} {{ tool }} {% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user