# how can i fix the "TemplateDoesNotExist at /" issue please

**URL:** <https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578>\
**Category:** Templates & Frontend\
**Created:** [November 19, 2024, 3:38pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578 "2024-11-19T15:38:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuel732-prog](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/emmanuel732-prog/32/24961_2.png) [@emmanuel732-prog](https://forum.djangoproject.com/u/emmanuel732-prog)\
**Post date:** [November 19, 2024, 3:38pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/1 "2024-11-19T15:38:18Z")

</div>

![2024-11-19](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/f/8/f85c9b616c6e6c942ef44d6231dd12cd7129eda0.png)

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 19, 2024, 3:54pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/2 "2024-11-19T15:54:16Z")

</div>

Please do not post images of error messages - copy/paste the errors from your server console.

What do you think this error message is telling you? What information is presented here that might help you find the cause of the error?

What file does it say is missing?

Where is that file located?

Where is it telling you that it is looking for that file?

---

<div class="post-metadata">

**Author:** ![emmanuel732-prog](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/emmanuel732-prog/32/24961_2.png) [@emmanuel732-prog](https://forum.djangoproject.com/u/emmanuel732-prog)\
**Post date:** [November 19, 2024, 4:01pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/4 "2024-11-19T16:01:33Z")

</div>

i don’t know what file that why i came here for help please.

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 19, 2024, 4:04pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/5 "2024-11-19T16:04:52Z")

</div>

It’s in the error message, the line titled “Exception Value”.

---

<div class="post-metadata">

**Author:** ![emmanuel732-prog](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/emmanuel732-prog/32/24961_2.png) [@emmanuel732-prog](https://forum.djangoproject.com/u/emmanuel732-prog)\
**Post date:** [November 19, 2024, 4:08pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/6 "2024-11-19T16:08:42Z")

</div>

from django.shortcuts import render

# Create your views here.

def post\_list(request):  
return render(request, ‘blog/post\_list.html’, {})

but i did it it is available on the views.py

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 19, 2024, 4:09pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/7 "2024-11-19T16:09:32Z")

</div>

That’s not what that message it telling you.

It’s saying it cannot find a file by that name.

Does that file exist? If so, in what directory?

---

<div class="post-metadata">

**Author:** ![emmanuel732-prog](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/emmanuel732-prog/32/24961_2.png) [@emmanuel732-prog](https://forum.djangoproject.com/u/emmanuel732-prog)\
**Post date:** [November 19, 2024, 11:01pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/8 "2024-11-19T23:01:43Z")

</div>

Under the blog directory.

It goes this way from my desktop folder…desktop/myapp/blog/  
then everything else re on the blog directory

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 19, 2024, 11:21pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/9 "2024-11-19T23:21:49Z")

</div>

What files are in the `desktop/myapp/blog` directory? List them all.

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 19, 2024, 11:26pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/10 "2024-11-19T23:26:13Z")

</div>

Also, are you working from a book or some other tutorial material? If so, what’s your source.

---

<div class="post-metadata">

**Author:** ![emmanuel732-prog](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/emmanuel732-prog/32/24961_2.png) [@emmanuel732-prog](https://forum.djangoproject.com/u/emmanuel732-prog)\
**Post date:** [November 20, 2024, 2:24pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/11 "2024-11-20T14:24:15Z")

</div>

i started my project (myapp) on the desktop directory. myapp is where i have the manage.py, setting.py models.py app.py, views.py, urls.py, tests.py, admin.py, _init_.py and all. In myapp i created a folder (blog) which i also added to INSTALLED\_APPS in settings.py. So in the blog directory i make another directory (Templates) while under the template i created another directory (blog) # blog/templates/blog then create a file under the last blog directory which is (post\_list.html). For my website [http://127.0.0.1:8000/](http://127.0.0.1:8000/) to get rid of the bug #TemplateDoesNotExist at /

---

<div class="post-metadata">

**Author:** ![emmanuel732-prog](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/emmanuel732-prog/32/24961_2.png) [@emmanuel732-prog](https://forum.djangoproject.com/u/emmanuel732-prog)\
**Post date:** [November 20, 2024, 2:25pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/12 "2024-11-20T14:25:05Z")

</div>

Djangogirls tutorial

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 21, 2024, 3:04am UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/13 "2024-11-21T03:04:53Z")

</div>

> [@emmanuel732-prog](#):
>
> myapp is where i have the manage.py, setting.py models.py app.py, views.py, urls.py, tests.py, admin.py, _init_.py and all.

Your models, views, urls, etc do _not_ belong in your project directory.

For a detailed description of a project layout see [Is the structure of the project correct? - #2 by KenWhitesell](https://forum.djangoproject.com/t/is-the-structure-of-the-project-correct/28374/2).

---

<div class="post-metadata">

**Author:** ![quan](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/quan/32/10905_2.png) [@quan](https://forum.djangoproject.com/u/quan)\
**Post date:** [November 21, 2024, 4:02am UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/14 "2024-11-21T04:02:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/a/b/ab2ec3460d56f60fd5b119c6772c8ba1817b91c9.png)

Notice the error messages. This is where Django looked for your template file. Post a screenshot of these folder content to see if the file is there.

---

<div class="post-metadata">

**Author:** ![emmanuel732-prog](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/emmanuel732-prog/32/24961_2.png) [@emmanuel732-prog](https://forum.djangoproject.com/u/emmanuel732-prog)\
**Post date:** [December 8, 2024, 6:25pm UTC](https://forum.djangoproject.com/t/how-can-i-fix-the-templatedoesnotexist-at-issue-please/36578/15 "2024-12-08T18:25:13Z")

</div>

I have gotten a solution to fix it and it worked thanks so much guys i am really grateful
