Ticket #26596: 26596.diff

File 26596.diff, 613 bytes (added by Alberto Julio Leal Rivera, 8 years ago)

diff file

  • docs/topics/templates.txt

    diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
    index 197ffc1..be0e74d 100644
    a b Jinja2 templates, as shown in the example above. Jinja2's global namespace  
    450450removes the need for template context processors. The Django template language
    451451doesn't have an equivalent of Jinja2 tests.
    452452
     453``'{% csrf_token %}'`` in Django templates translates to ``'{{ csrf_token }}'`` in Jinja2 templates.
     454
     455``'{{ csrf_token }}'`` works identically in Django templates and in Jinja2 templates.
     456
    453457Custom backends
    454458---------------
    455459
Back to Top