Skip to content

Commit

Permalink
added template directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dprosper committed Dec 11, 2021
1 parent 977c7fe commit 08f4371
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
https://docs.djangoproject.com/en/4.0/ref/settings/
"""

import os
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -54,7 +55,9 @@
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [
os.path.join(os.path.dirname(__file__), 'templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
Expand Down

0 comments on commit 08f4371

Please sign in to comment.