Home > front end >  Not able to find template in Django Framework
Not able to find template in Django Framework

Time:12-29

As part of a project, I'm developing a social networking website. When I try to load a webpage, a django.template.exceptions error message appears. TemplateDoesNotExist. I have examined every setting, installed application, and template directory item in relation to their position. Everything was running smoothly without any issues up until yesterday. When I began working today, I started running across this issue. The location in the errors is exactly right, thus I don't understand how it can't locate the template. Additionally, I have four templates, of which two (the recently built ones) are experiencing this issue while the other two load without any issues.

(Images of Error I am facing right now) View.py Settings.py 1 Settings.py 2

I am trying to display a HTML file and expecting to come over on my browser.

CodePudding user response:

According to your signup view, you made mistake while rendering template. You have added signup without html extension.

Instead of this:

return render(request,'signup')

Try this:

return render(request,'signup.html')
  • Related