문제 상황

runserver하니까 OSError가 났다.

 

원인 분석

 template경로를 못찾는 것 같다..

 

문제해결

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
                os.path.join(BASE_DIR, 'templates'),
                'C:\\Users\\sby04\\nohasonseo'
                ],
        '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',
            ],
        },
    },
]
as-is to-be
        'DIRS': os.path.join(BASE_DIR, 'templates')         'DIRS': [
                os.path.join(BASE_DIR, 'templates'),
                'C:\\Users\\sby04\\nohasonseo'
                ],

+ Recent posts