Django TemplateDoesNotExist - невозможно отобразить шаблон

Я новичок в django и использую версию 4.1.2. Я создал приложение со следующей структурой

enter image description here

Я настроил шаблон app ('home') в файле первичной настройки следующим образом. но все равно я получаю ошибку

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            os.path.join(BASE_DIR/'home', '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',
            ],
        },
    },
]

вот мой код представления

from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.

def home(request):
    return render(request, ' home/welcome.html' , {})

Уберите пробел в пути к шаблону: ' home/welcome.html' должны быть 'home/welcome.html'

Вернуться на верх