#37032: Documentation for django.template.context_processors.csrf is incorrect 
or
inaccurate
-------------------------------------+-------------------------------------
     Reporter:  Christian Finnberg   |                    Owner:  (none)
         Type:  Uncategorized        |                   Status:  closed
    Component:  Documentation        |                  Version:  dev
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  csrf, context        |             Triage Stage:
  processor                          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Christian Finnberg):

 Replying to [comment:1 Sarah Boyce]:
 > The docs are correct, the template tag gets the `csrf_token` which is
 added by the context processor. However, this context processor is enabled
 by default regardless of your settings. See
 
https://docs.djangoproject.com/en/6.0/ref/templates/api/#:~:text=In%20addition%20to%20these,option

 Thanks for the correction. I didn't noticed your highlighted paragraph.
 Sorry for the noise then.
 In any case I still think it would be helpful for the developer reading
 the documentation to get this information also from the
 django.template.context_processors.csrf part. At least I was reading the
 part of the documentation about context processors and I was confused
 about this one
-- 
Ticket URL: <https://code.djangoproject.com/ticket/37032#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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019d8b8c7020-eb56ebe8-e937-4300-80f5-e03bb7fe572f-000000%40eu-central-1.amazonses.com.

Reply via email to