--Create a templates directory directly under the project directory and create base.html in it --[TemplateDoesNotExist] error occurs when base.htnl is called from html directly under the templates directory in each application directory.
In the figure below, I want to call base.html from list.html
In settings.py directly under the project directory import os 'DIRS': [os.path.join(BASE_DIR, 'templates')] Add
After that, in the html file you want to read base.html
If you forget [import os] [name 'os' is not defined] I get angry.