Skip to content

Commit

Permalink
settings: configured templates path
Browse files Browse the repository at this point in the history
  • Loading branch information
kherin committed Jan 2, 2024
1 parent 3b886be commit 1ff4161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
File renamed without changes.
3 changes: 2 additions & 1 deletion project1/project1/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"""

from pathlib import Path
import os

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

0 comments on commit 1ff4161

Please sign in to comment.