Re: Template not found error

2024-11-12 Thread ALINDA Fortunate
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

On Tue, Nov 12, 2024, 08:09 Abdul Qoyyuum Haji Abdul Kadir <
[email protected]> wrote:

> 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  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 [email protected].
>> 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
> More about me: https://buymeacoffee.com/qoyyuum
>
> --
> 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 [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/django-users/CANVqoJ8O5ssa3inYmYKak4qkk%3DvNYEYp2LD-PUNeuYAb32KU3w%40mail.gmail.com
> 
> .
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-users/CAPifpCt7wFw6VWhuwk83Lmrh6K_rK7b0PO6iZXdg4Aa6ooOv4A%40mail.gmail.com.


Re: Template not found error

2024-11-11 Thread Abdul Qoyyuum Haji Abdul Kadir
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  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 [email protected].
> 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
More about me: https://buymeacoffee.com/qoyyuum

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-users/CANVqoJ8O5ssa3inYmYKak4qkk%3DvNYEYp2LD-PUNeuYAb32KU3w%40mail.gmail.com.


Re: Template not found error

2024-11-11 Thread Walter Randazzo
Did you add the app to the settings.py lists of apps?



El lun, 11 nov 2024 a las 14:20, Heman Okumbo ()
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 [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/django-users/CAJt9CbjJNwnRFEix%2BGVmu-HSAppYwxgK2rwRzi14p9u-94PU%3DA%40mail.gmail.com
> 
> .
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-users/CAL7Dry4-56ESNzBc4QiPLcj9j5z5fBc%2BT-wz2%2ByYYAS00u2f%2Bg%40mail.gmail.com.