#26596: Document {{ csrf_input }} in Jinja2 templates
-------------------------------+--------------------------------------
     Reporter:  aaugustin      |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Documentation  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by aaugustin):

 I saw that mention but I don't think it's sufficiently explicit about how
 to use that variable.

 We should say that:

 - {% csrf_token %} in Django templates translates to {{ csrf_input }} in
 Jinja2 templates
 - {{ csrf_token }} works identically in Django templates and in Jinja2
 templates

--
Ticket URL: <https://code.djangoproject.com/ticket/26596#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.48383b4424c7798e00f88bedef65844d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to