본문 바로가기
성장일기/1주 프로젝트

[1주 프로젝트] mozilla Django 튜토리얼 따라하기 : 4일차

by julysein 2021. 12. 21.
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