Opened 15 years ago
Last modified 14 months ago
#12075 closed New feature
Add wsgiorg.routing args support — at Version 7
Reported by: | Gustavo Narea | Owned by: | Gustavo Narea |
---|---|---|---|
Component: | HTTP handling | Version: | dev |
Severity: | Normal | Keywords: | WSGI, wsgiorg.routing_args |
Cc: | Florian Apolloner | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The wsgiorg.routing_args standard may be really useful if you want to use WSGI middleware or applications inside Django because some of them take advantage of that to do nice/useful things.
It's currently not supported in Django - But it will with the attached patch.
[edit] fixed broken link.
Change History (8)
comment:1 by , 15 years ago
by , 15 years ago
Attachment: | django-wsgiorg-routing_args.diff added |
---|
Improved patch to support wsgiorg.routing_args
comment:2 by , 15 years ago
milestone: | 1.2 |
---|---|
Needs tests: | set |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 15 years ago
Status: | new → assigned |
---|
I reimplemented this functionality as a Django middleware in twod.wsgi. That middleware has full unit test coverage:
http://bitbucket.org/2degrees/twod.wsgi/src/tip/twod/wsgi/middleware.py
http://bitbucket.org/2degrees/twod.wsgi/src/tip/tests/test_middleware.py
Would you like me to write a patch with the middleware or write tests for the initial patch?
comment:4 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:7 by , 12 years ago
Description: | modified (diff) |
---|
I forgot to mention, the patch assumes that the WSGI environment is available, which won't true with mod_python until the patch I sent for #8927 is applied.