'TemplateDoesNotExist at / new.html
i'm trying to connect the html file with my views.py although everything seem correct but still after running the server it shows TemplateDoesNotExist
This is the folder order
views.url
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return render(request, 'new.html')
Solution 1:[1]
the path should be
def index(request):
return render(request, 'home/new.html')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sherif Hassan |

