Relative path in TEMPLATES setting

DIRS must be absolute paths. Relative paths will not work.

The TEMPLATE setting is a list of the template engines used when finding template files and rendering them.

The DIRS key within the TEMPLATE list denotes the directories where the engine should look for template source files.

If our GitHub code review bot spots this issue in your pull request it gives this advice:

django-doctorbotsuggested changes just now
settings.py
1
+
TEMPLATES = [
2
+
    {
3
+
        ...
4
+
        'DIRS': ['core/html'],

DIRS must be absolute paths. Relative paths will not work.

Read more
5
+
    },
6
+
]
Update settings.py

Instantly check if you have this issue for free

    Works with tools you use

    Read about how it works.