Django Part 1 - TemplateDoesNotExist

I get this same error.

Template-loader postmortem

Django tried loading these templates, in this order:

Using engine django :

  • django.template.loaders.app_directories.Loader : /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/contrib/admin/templates/hello.html (Source does not exist)
  • django.template.loaders.app_directories.Loader : /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/contrib/auth/templates/hello.html (Source does not exist)

I’m new to django and I’m not clear what "Manually including template search directory (in DIRS of settings.py) " means.

Is it the DIRS in settings.py in the TEMPLATES variable?

TEMPLATES = [
{
‘BACKEND’: ‘django.template.backends.django.DjangoTemplates’,
‘DIRS’: [],
‘APP_DIRS’: True,
‘OPTIONS’: {
‘context_processors’: [
‘django.template.context_processors.debug’,
‘django.template.context_processors.request’,
‘django.contrib.auth.context_processors.auth’,
‘django.contrib.messages.context_processors.messages’,
‘playground’
],
},
},
]

If so, what should that be set to? Can it be set to a relative path?