The TEMPLATES setting tells Django which template engine to use and where to search for template files. It connects a view’s render() call with an HTML file on disk. section 3.10 section 3.6
A typical configuration controls the main lookup and rendering pieces:
- BACKEND selects Django’s template backend. section 3.6
Rendering RiffMates news
A news() view passes request, "news.html", and a data dictionary to render(). With TEMPLATES['DIRS'] set to BASE_DIR / 'templates', Django can find templates/news.html and render the news list from the context. section 3.6
