Using the template system
A Django project can be configured with one or several template engines (or even zero if you don't use templates). Django ships with a built-in backend for its own template system-the Django Template Language (DTL). Django 1.8 also includes support for the popular alternative Jinja2 (for more information visit http://jinja.pocoo.org/). If you don't have a pressing reason to choose another backend, you should use the DTL-especially if you're writing a pluggable application and you intend to distribute templates. Django's contrib
apps that include templates, like django.contrib.admin
, use the DTL. All of the examples in this chapter will use the DTL. For more advanced template topics, including configuring third-party template ...
Get Mastering Django: Core now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.