#19486: csrf_token tag is empty on Resolver404 error
------------------------------+--------------------------------------
Reporter: SardarNL | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: 1.4
Severity: Normal | Resolution: wontfix
Keywords: csrf | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by russellm):
* status: new => closed
* needs_better_patch: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_docs: => 0
Comment:
Context processors are not executed on error pages, so the csrf_token, and
any other context request variables, aren't available. This is by design
-- when errors occur, you don't want another error to be raised when
showing the error page, and since context could be the cause of the error,
the error pages aren't formed using a RequestContext.
--
Ticket URL: <https://code.djangoproject.com/ticket/19486#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.