As you can see from the template postmortem output, Django is looking in /home/lnctgg/templates, but you have your index file in /home/lnctgg/lnct/templates, so it cannot find it. From the code that you've posted, that suggests that your BASE_DIR is incorrect, since it should be /home/lnctgg/lnct, which would set your templates in the right place if the TEMPLATES DIRS key is [os.path.join(BASE_DIR, 'templates')]
I am having a similar problem. My Django web app works locally on Windows but it is not working on PA. The first login page loads but after logging in, I get a "Template Does Not Exist" error for the index.html which extends a layout2.html page that cannot be found. The login page extends a layout1.html page which is in the same directory below. I am not sure why layout1.html template is found but layout2.html is not being found.
Django tried loading these templates, in this order:
Using engine django:
django.template.loaders.filesystem.Loader: /home/conordore/mma-client-portal/mma_dashboard/templates/mma_dashboard/layout2.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/conordore/.virtualenvs/venv/lib/python3.10/site-packages/django/contrib/admin/templates/mma_dashboard/layout2.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/conordore/.virtualenvs/venv/lib/python3.10/site-packages/django/contrib/auth/templates/mma_dashboard/layout2.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/conordore/mma-client-portal/mma_dashboard/templates/mma_dashboard/layout2.html (Source does not exist)
Error during template rendering
In template /home/conordore/mma-client-portal/mma_dashboard/templates/mma_dashboard/index.html, error at line 1
Both layout html pages are in the same template directory and layout1 is being found with the login page but layout2 is not being found by the index.html page.
Any help with this would be much appreciated.
Sorry, we have had to rate-limit your feedback sending. Please try again in a few moments...
Thanks for the feedback! Our tireless devs will get back to you soon.