Forums

Template-loader postmortem

But my index file in /home/Khader/dating_app/templates/admin/index.html

But it try to find in other places why?

Django tried loading these templates, in this order: Using engine django:

django.template.loaders.filesystem.Loader: /home/Khader/dating_app/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Khader/.virtualenvs/dating_app-virtualenv/lib/python3.10/site-packages/django/contrib/admin/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Khader/.virtualenvs/dating_app-virtualenv/lib/python3.10/site-packages/django/contrib/auth/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Khader/.virtualenvs/dating_app-virtualenv/lib/python3.10/site-packages/django_filters/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Khader/dating_app/profiles/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Khader/dating_app/chat/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Khader/dating_app/checkout/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Khader/dating_app/account/templates/index.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Khader/dating_app/search/templates/index.html (Source does not exist)

How did you configure TEMPLATES in your Django app? See, the docs for reference.