Hi,
You need to set the template directories option in your project's settings file.
See here:
https://docs.djangoproject.com/en/1.11/topics/templates/#configurationThere's an example in the above link:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
'/home/html/example.com',
'/home/html/default',
],
},
{
'BACKEND': 'django.template.backends.jinja2.Jinja2',
'DIRS': [
'/home/html/jinja2',
],
},
]
Once Django is aware of where to search for templates, you can include templates from your project's templates directory as follows:
{% include "Error.html" %}
And you can include app templates as follows:
{% include "App1/App1.html" %}
Also, pay attention to capitalization of filenames, as "Error.html" and "error.html" are different files on many systems. I use all-lowercase to avoid issues.
Dartos