0👍
✅
I was under a time crunch, so I simply rolled all the included templates right into search.html and called it a day.
2👍
The include
tag relies on django.template.loader.get_template
which searches templates in normal way instead of by relative path. Do you use "_resultPage.html"
or "search/_resultPage.html"
. If you use the first form, the absolute path of 'template/search/search'
must be in TEMPLATE_DIRS
. You could check by doing the following:
>>> from django.template.loader import get_template
>>> get_template('_resultPage.html')
👤okm
Source:stackexchange.com