[Answered ]-TemplateDoesNotExist when using as_view()

1👍

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👍

Django looks in the templates directory for each app. Therefore your portfolio/skill_list.html template should be in mysite/portfolio/templates/portfolio/skill_list.html.

Leave a comment