Pull request provided here: https://github.com/django/django/pull/1951
--
Ticket URL: <https://code.djangoproject.com/ticket/21483>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 1
* needs_tests: => 1
* stage: Unreviewed => Accepted
Comment:
Suggestions noted on the PR! Assign this ticket to yourself if you are
planning to work on it ;-)
--
Ticket URL: <https://code.djangoproject.com/ticket/21483#comment:1>
* status: new => assigned
* owner: nobody => anonymous
--
Ticket URL: <https://code.djangoproject.com/ticket/21483#comment:2>
Comment (by Joshua "jag" Ginsberg <jag@…>):
PR amended with suggestions. Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/21483#comment:3>
Comment (by aaugustin):
I'm wondering if whatever you're planning to do in the signal receiver
wouldn't be better implemented in a middleware.
But maybe that's just my phobia of signals :)
--
Ticket URL: <https://code.djangoproject.com/ticket/21483#comment:4>
Comment (by Joshua "jag" Ginsberg <jag@…>):
For many (most?) cases, I'd agree with you - middleware has that
explicitness, where as signals are automated magic. However the signal is
the absolute earliest place to modify the handling of a request - for
cases where middleware may even be too late, doing work with a signal
handler could be the best option.
--
Ticket URL: <https://code.djangoproject.com/ticket/21483#comment:5>
* needs_better_patch: 0 => 1
* needs_tests: 1 => 0
* needs_docs: 1 => 0
Comment:
I left comments for improvement on the PR. Please uncheck "Patch needs
improvement" when you update it, thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/21483#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"eb2af16c59c3014541e2ad8ca63e510bc076dd8b"]:
{{{
#!CommitTicketReference repository=""
revision="eb2af16c59c3014541e2ad8ca63e510bc076dd8b"
Fixed #21483 -- Added WSGI environ to kwargs sent to request_started
signal.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21483#comment:7>