1from pathlib import Path
2
3BASE_DIR = Path(__file__).resolve().parent.parent
4
5INSTALLED_APPS = [
6 ...,
7 'blog',
8 ...,
9]
10
11TEMPLATES = [
12 {
13 'BACKEND': 'django.template.backends.django.DjangoTemplates',
14 'DIRS': [BASE_DIR / 'templates'],
15 'APP_DIRS': True,
16 ...
17 },
18]
19