1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Documented jinja2 install requirement.

This commit is contained in:
Tim Graham 2015-03-30 20:56:50 -04:00
parent 29b4a3f513
commit 56286542db
2 changed files with 11 additions and 6 deletions

View File

@ -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
~~~~~~~~~~~~~~~~~~~~~

View File

@ -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.