#12075: Add wsgiorg.routing args support
-------------------------------------+-------------------------------------
Reporter: Gustavo Narea | Owner: Anvesh
| Mishra
Type: New feature | Status: assigned
Component: HTTP handling | Version: dev
Severity: Normal | Resolution:
Keywords: WSGI, | Triage Stage: Accepted
wsgiorg.routing_args |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Florian Apolloner):
Two things that come to mind:
* On a technical level I think if this were to be in core it should be
done via `django/core/handlers/wsgi` where `resolve_request` could be
overwritten to set `request.environ/META` directly from the returned
`resolver_match` there (unconditionally, I don't see much gain in a
middleware and extra setters/getters for such a niche feature).
* On a organizational level I'd like to ask: Do we need this? If someone
wants it, there is always `request.resolver_match` which can be used to
copy this data into `environ['wsgiorg.routing_args']` as needed.
Given point two I'd like to ask if there are any popular python solutions
utilizing this, if yes then by all means let's include it. I could imagine
for instance that sentry's sdk (and others) could be using this to get
more information about the request (someone would need to check this) --
but aside from error reporting not much comes to mind that wouldn't be
easily worked around manually in code (ie when calling another wsgi app
from a django view etc…)
--
Ticket URL: <https://code.djangoproject.com/ticket/12075#comment:15>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/010701855d76cd6c-4fa85fe9-38c6-41c3-b0bc-32b461a8fa99-000000%40eu-central-1.amazonses.com.