N
N
Nikita Zaycev2020-09-30 04:25:15
Django
Nikita Zaycev, 2020-09-30 04:25:15

Django doesn't see templates, what should I do?

I don’t understand why when the server starts, a page appears where it shows that the original content was not found
Link to the project: https://yadi.sk/d/KrjXOxFwcQ4VQA?w=1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bituke, 2020-09-30
@manofthebottle

in the root settings file, find the "TEMPLATES" dictionary and in the value of the 'DIRS' key - Enter this line here:
'DIRS': [os.path.join(BASE_DIR, 'templates')],
Without this extension line, Django looks for all templates in each application of the project, and not in one separate root folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question