mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #23527 -- Removed Cheetah references in docs
Thanks to @aaugustin for submitting the ticket.
This commit is contained in:
parent
ee442e97da
commit
b9b8895acb
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue