Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question