FLYAX
January 28, 2022, 3:10pm
1
Hey,
I have 3 apps in my project and every of them has its own template folder and its own home folder inside the template folder. In my main app with the index view everything works. But in my other two apps I get this error:
TemplateDoesNotExist: home/settings.html
TemplateDoesNotExist: home/dashboard.html
This is my project structure:
What does the TEMPLATES section of your settings file look like?
FLYAX
January 28, 2022, 3:55pm
3
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',
],
},
},
]
Your template dashboard.html
is not in a directory named home
. It’s in a directory named homedashboard
, so home/dashboard.html
isn’t going to work.
Regarding Settings
, is it in your INSTALLED_APPS setting? What is the complete exception being generated for it?