S
S
steel_dog2021-05-16 21:51:28
Django
steel_dog, 2021-05-16 21:51:28

Django TemplateDoesNotExist at /blog/?

Hey!
Decided to learn Django.
Advised book Antonio Mele Django 2
in examples.
I do everything as in the book but on the page  43
Creating HTML templates for handlers
Let's edit post/list.html,
I can't display the \blog page as in the screenshot in the book.
It is displayed standardly for Django without the html template I have prescribed.

Here is the output 127.0.0.1:8000/blog
60a16503135aa255746159.png

and in the book it looks like this:
60a1652a5f67f643235806.png

if I follow the link 127.0.0.1:8000/admin/blog
I get:
60a1656a52ec3789267186.png

the structure of my blog:
60a1687bac860467114642.png

what information should I provide what would help me with my blog?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sk8beemo, 2021-05-16
@sk8beemo

Try adding templates folder to blog directory(blog application) and move post folder there
also check settings.py according to https://stackoverflow.com/questions/1926049/django...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question