Почему вылазит ошибка TemplateDoesNotExist в Django?

В settings.py указал абсолютную ссылку на TEMPLATE_DIRS. Вылазит TemplateDoesNotExist, почему же?
****
TEMPLATE_DIRS = [
'/home/***/venv/project/templates'
]

views.py
from django.shortcuts import render
from django.http.response import HttpResponse
from django.template.loader import get_template

def show_blog(request):
html = get_template('index.html')
return HttpResponse(html)
  • Вопрос задан
  • 1573 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы