summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorOla Sitarska <ola@sitarska.com>2014-09-21 17:30:18 +0200
committerBaptiste Mispelon <bmispelon@gmail.com>2014-09-21 18:03:31 +0200
commitb9b8895acb4f5652fcb97525d0683afad5615406 (patch)
tree6bcd39508f7f42fa3f9dbd782870ac691852ee70 /docs/ref
parentee442e97da390b7136dc12b66ddfa70263a60b5c (diff)
Fixed #23527 -- Removed Cheetah references in docs
Thanks to @aaugustin for submitting the ticket.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/csrf.txt4
-rw-r--r--docs/ref/templates/api.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/csrf.txt b/docs/ref/contrib/csrf.txt
index be0c7ddcd1..ac6c55a74c 100644
--- a/docs/ref/contrib/csrf.txt
+++ b/docs/ref/contrib/csrf.txt
@@ -164,13 +164,13 @@ When using a different template engine than Django's built-in engine, you can
set the token in your forms manually after making sure it's available in the
template context.
-For example, in the Cheetah template language, your form could contain the
+For example, in the Jinja2 template language, your form could contain the
following:
.. code-block:: html
<div style="display:none">
- <input type="hidden" name="csrfmiddlewaretoken" value="$csrf_token"/>
+ <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
</div>
You can use JavaScript similar to the :ref:`AJAX code <csrf-ajax>` above to get
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index a58b3d5060..6e48611f4a 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -953,7 +953,7 @@ Using an alternative template language
The Django ``Template`` and ``Loader`` classes implement a simple API for
loading and rendering templates. By providing some simple wrapper classes that
implement this API we can use third party template systems like `Jinja2
-<http://jinja.pocoo.org/docs/>`_ or `Cheetah <http://www.cheetahtemplate.org/>`_. This
+<http://jinja.pocoo.org/docs/>`_. This
allows us to use third-party template libraries without giving up useful Django
features like the Django ``Context`` object and handy shortcuts like
:func:`~django.shortcuts.render_to_response()`.