I keep getting TemplateDoesNotEXist after running my local server, using Django 4.0.2 how do I fix it

Viewed 22

TemplateDoesNotEXist at \ myapp1/dashboard.html

Request Method: GET Request URL: http://127.0.0.1:8000/ Exception Type: TemplateDoesNotEXist Exception Value: myapp1/dashboard.html

...........................

I've already edited my template dirs, registered my apps in installed apps

Here are my views

from django.shortcuts import render 

def dashboard(request):
    form = DweetForm
    return render(request, "myapp1/dashboard.html")

............................ My project directory is like this:

      my_project 
      |
       my_project
      |
       myapp1
      |
        --pycache--
      Migrations

templates/myapp1/dashboard.html init admin apps forms models serializers test urls views

.............................. I didn't use pycharm or any other IDE to start the project I created the file manually on my windows, for the templates I created a folder in the app directory and created a file using notepad and then I inserted the HTML file, yet I keep getting the errors.

0 Answers
Related