Configurando templates globais com DIRS + extends para herança de templates

This commit is contained in:
Luiz Otávio
2023-04-17 08:09:01 -03:00
parent e3577a686b
commit 476988f861
3 changed files with 18 additions and 13 deletions

View File

@@ -56,7 +56,9 @@ ROOT_URLCONF = 'project.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [
BASE_DIR / 'base'
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [