Структура папки- lp
- migrations
- templates
- __init__.py
- admin.py
- .........
views.py:
from django.http.response import HttpResponse
from django.shortcuts import render
def index(request):
return render(request, 'landing/base.html')
Ошибка TemplateDoesNotExist at /
landing/base.html
Вообще он не там его смотрет
Using engine django:
django.template.loaders.filesystem.Loader: /home/alexander/my_projects/python_projects/landing/templates/landing/base.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/alexander/my_projects/python_projects/landing/env/lib/python3.5/site-packages/django/contrib/admin/templates/landing/base.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/alexander/my_projects/python_projects/landing/env/lib/python3.5/site-packages/django/contrib/auth/templates/landing/base.html (Source does not exist)