TemplateDoesNotExist в / в django (какие настройки делать)

Я новичок в django. Возникает ошибка templateDoesNotExist at /

В моем проекте есть одно приложение, я поместил папку шаблона в приложение. Структура выглядит следующим образом: Имя_проекта, manage.py, имя_приложения, SQLite

Структура приложения (имя_приложения): другие файлы ... Внутри папки шаблонов ... (Templates(папка) -> app_name(папка) ->HTML файл)

Какие настройки я должен сделать в settings.py prj, чтобы отладить эту ошибку.

Нужно ли мне указывать путь к каждому шаблону каждого приложения. ? Например, внутри setting.py в Templates

DIRS: ['BASE_DIR', "path"]

======== check & verify this ========
step-1 : check your app is registered or not

step-2: if your [templates] folder is in the app then go with the below setting otherwise put the path of your template in DIRS:['your template directory']

=== this is the default setting for a template if your templates folder in your application folder ===

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',
            ],
        },
    },
]

step-3: check in views.py template name is correct or not 
Вернуться на верх