Back slashes in TEMPLATES settings

DIRS must be forward slashes, even in Windows. Forward slashes do not need escaping, and they are cross Operating System compatible.

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': ['\home\app\core\html'],

DIRS must be forward slashes, even in Windows. Forward slashes do not need escaping, and they are cross Operating System compatible.

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.