바뀜

611 바이트 추가됨 ,  2021년 4월 20일 (화) 21:46
132번째 줄: 132번째 줄:  
         'OPTIONS': {
 
         'OPTIONS': {
 
             'context_processors': [
 
             'context_processors': [
</syntaxhighlight>
+
</syntaxhighlight>앱 내부의 경로를 읽지 못한다...
 +
 
 +
TEMPLATES = [
 +
 
 +
    {
 +
 
 +
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
 +
 
 +
        'DIRS': [os.path.join(BASE_DIR, 'templates')],  #탬플릿 위치
 +
 
 +
        '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',
 +
 
 +
            ],
 +
 
 +
        },
 +
 
 +
    },
 +
 
 +
]
 
|}
 
|}
 
[[분류:1. 장고 기초]]
 
[[분류:1. 장고 기초]]
익명 사용자