Answer the question
In order to leave comments, you need to log in
Is Django looking for a template in the wrong place?
Folder structure
from django.http.response import HttpResponse
from django.shortcuts import render
def index(request):
return render(request, '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)
Answer the question
In order to leave comments, you need to log in
See what you have in settings.py in TEMPLATE_LOADERS and TEMPLATE_DIRS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question