#29341: Automatically Set "request.current_app" for all Request
-------------------------------------+-------------------------------------
     Reporter:  Luoxzhg              |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Utilities            |                  Version:  master
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  middleware,          |             Triage Stage:
  current_app, request               |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Hi Luoxzhg,

 Given you can already rely on `request.resolver_match.namespace` as you've
 demonstrated in your report I don't see the benefit of providing an alias
 that hides the fact this ''app name'' is actually bound to the URL
 reversal mechanism. IMHO `request.resolver_match.namespace` does a good
 job at exposing this attribute while making its origin clear.

 Feel free to bring the discussion to developer mailing list if your
 disagree with my resolution.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29341#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.b0ae257d341a576f1a67f67bdfbb1e42%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to