Commit 56286542 authored by Tim Graham's avatar Tim Graham
Browse files

Documented jinja2 install requirement.

parent 29b4a3f5
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -49,12 +49,11 @@ Multiple template engines
~~~~~~~~~~~~~~~~~~~~~~~~~

Django 1.8 defines a stable API for integrating template backends. It includes
built-in support for the Django template language and for Jinja2_. It supports
rendering templates with multiple engines within the same project. Learn more
about the new features in the :doc:`topic guide </topics/templates>` and check
the :doc:`upgrade instructions </ref/templates/upgrading>` for details.

.. _Jinja2: http://jinja.pocoo.org/
built-in support for the Django template language and for
:class:`~django.template.backends.jinja2.Jinja2`. It supports rendering
templates with multiple engines within the same project. Learn more about the
new features in the :doc:`topic guide </topics/templates>` and check the
:doc:`upgrade instructions </ref/templates/upgrading>` for details.

Security enhancements
~~~~~~~~~~~~~~~~~~~~~
+6 −0
Original line number Diff line number Diff line
@@ -384,6 +384,12 @@ applications. This generic name was kept for backwards-compatibility.

.. class:: Jinja2

Requires Jinja2_ to be installed:

.. code-block:: console

    $ pip install Jinja2

Set :setting:`BACKEND <TEMPLATES-BACKEND>` to
``'django.template.backends.jinja2.Jinja2'`` to configure a Jinja2_ engine.