Template not found error

68 views
Skip to first unread message

Heman Okumbo

unread,
Nov 11, 2024, 12:22:23 PM11/11/24
to django...@googlegroups.com
Hello everyone, how comes the template lands.html is not working? while the template -loader postmortem shows that it has searched the directory/storage/emulated/0/pro/templates/land/lands.html where the template is?.the template is lands.html.
Screenshot_20241111-201354.png

Walter Randazzo

unread,
Nov 11, 2024, 12:23:33 PM11/11/24
to django...@googlegroups.com
Did you add the app to the settings.py lists of apps? 



El lun, 11 nov 2024 a las 14:20, Heman Okumbo (<heman...@gmail.com>) escribió:
Hello everyone, how comes the template lands.html is not working? while the template -loader postmortem shows that it has searched the directory/storage/emulated/0/pro/templates/land/lands.html where the template is?.the template is lands.html.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/CAJt9CbjJNwnRFEix%2BGVmu-HSAppYwxgK2rwRzi14p9u-94PU%3DA%40mail.gmail.com.

Abdul Qoyyuum Haji Abdul Kadir

unread,
Nov 12, 2024, 12:09:34 AM11/12/24
to django...@googlegroups.com
The errors are pretty clear here:

Template-loader postmortem
Django tried loading these templates, in this order:
Using engine django:
  • django.template.loaders.filesystem.Loader: /storage/emulated/0/pro/templates/land/lands.htmI (Source does not exist)
  • django.template.loaders.app_directories.Loader: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11 /site-packages/django/contrib/admin/templates/land/lands.html (Source does not exist)
  • django.template.loaders.app_directories.Loader: /data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11 /site-packages/django/contrib/auth/templates/land/lands.html (Source does not exist)
But you claim that directory /storage/emulated/0/pro/templates/land/lands.html exists but we don't see it.

Also, you have not mentioned on what you have already tried so far. So I can only guess an answer.

What is the permission settings of lands.html? If you run 

ls -la /storage/emulated/0/pro/templates/land/lands.html 

What does it show? If it indeed exists, can you check the file permissions/ownership of that file? 

On Tue, 12 Nov 2024 at 01:21, Heman Okumbo <heman...@gmail.com> wrote:
Hello everyone, how comes the template lands.html is not working? while the template -loader postmortem shows that it has searched the directory/storage/emulated/0/pro/templates/land/lands.html where the template is?.the template is lands.html.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/CAJt9CbjJNwnRFEix%2BGVmu-HSAppYwxgK2rwRzi14p9u-94PU%3DA%40mail.gmail.com.


--
Abdul Qoyyuum Bin Haji Abdul Kadir
Nickname: Q

ALINDA Fortunate

unread,
Nov 12, 2024, 6:52:13 AM11/12/24
to django...@googlegroups.com

Have you configured the templates settings in your settings.py file. Such that Django knows where to locate all your templates from.

+256774339676

 "If you want to live a happy life, tie it to a goal, not to people or things."

A graduate of Bachelors Degree of Science in Computer Science of Gulu University.

@FortunateAlinda
Passionate about Python Development
And Computer related Dynamics

Reply all
Reply to author
Forward
0 new messages