728x90
1. templates
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
APP_DIRS : True
모든 app 들에서 templates를 자동으로 search해줌
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Generic_views
Django Tutorial Part 6: Generic list and detail views - Learn web development | MDN
Congratulations, our basic library functionality is now complete!
developer.mozilla.org
728x90
'성장일기 > 1주 프로젝트' 카테고리의 다른 글
[1주 프로젝트] 트렌드 코리아 2022 읽기 2일차 (0) | 2022.01.02 |
---|---|
[1주 프로젝트] 트렌드 코리아 2022 읽기 1일차 : 새롭게 시작하는 2022 (0) | 2022.01.01 |
[1주 프로젝트] mozilla Django 튜토리얼 따라하기 : 3일차 (0) | 2021.12.20 |
[1주 프로젝트] mozilla Django 튜토리얼 따라하기 : 1-2일차 (0) | 2021.12.19 |
[1주 프로젝트] 경제 신문 읽기 7일차 : 211217 (0) | 2021.12.17 |