#8927: Make Request proxy the WSGI environ
-------------------------------+------------------------------------
     Reporter:  simon          |                    Owner:  nobody
         Type:  New feature    |                   Status:  new
    Component:  HTTP handling  |                  Version:  SVN
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by carljm):

 * ui_ux:   => 0
 * version:  1.0 => SVN
 * easy:   => 0


Comment:

 It's become a bit muddy what would qualify as a "fix" for this bug.
 `request.environ` exists; the only patch that's been submitted here is to
 make it available under `mod_python` as well, but that's not really
 relevant since the `mod_python` handler is deprecated and soon to be
 removed. Having requests "proxy" the environ suggests perhaps something
 deeper, maybe that changes to the `HttpRequest` instance would actually be
 reflected in corresponding changes in the `environ`? Not sure how
 important that actually is in practice.

 Looking at Mark Ramm's initial comment about `call_wsgi_app`, it seems
 that the actual request is to include something like
 [https://github.com/alex/django-wsgi/blob/master/django_wsgi.py django-
 wsgi] in core, to allow easy "adaptation" between Django view functions
 and/or urlconfs and WSGI callables. The fact that that code is so short
 demonstrates that the needed pieces are already in place, it's a matter of
 making it more convenient.

 I think adding such adapter functions to Django core makes sense, and
 fills in really the last major gap in Django WSGI support. Filed also as
 https://github.com/alex/django-wsgi/issues/2

-- 
Ticket URL: <https://code.djangoproject.com/ticket/8927#comment:14>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to