[Django]-Djangos TEMPLATE_DIRS not found

4👍

What version of Django are you using? It appears that TEMPLATE_DIRS was used prior to 1.8 but in the current version it has changed to a DIRS option in the TEMPLATES setting.

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            '/home/html/templates/lawrence.com',
            '/home/html/templates/default',
        ],
    },
] 

Template DIRS Option Docs

0👍

Well it is not a good solution, but try hardcoding the full path.

👤pptt

Leave a comment