This is quite strange. As far as I knew, django always searches in local dir and then goes into Python installed lib dir. But this is not the case with django.contrib.comments.
I am trying to load list.html
from local template director of the comments
app. Its located exactly at templates/comments/list.html
on local app dir.
The strange part is, it doesn't get loaded. It only loads the default one found in django.contrib.comments dir..
Why is it happening.
- My app is correctly configured
Since something is going wrong I thought to check whether template dir is in path or not. So, I quickly loaded
{% include "comments/list.html" %}
and it showed default file (not the custom one it supposed to show)
but I just changed list.html to list1.html and it was showing.
- I changed the file name from list.html to list1.html and its working.