#32005: Allow disabling of auto-404-redirection in LocaleMiddleware
-------------------------------------+-------------------------------------
     Reporter:  Alex Vandiver        |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:                       |                  Version:  3.1
  Internationalization               |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

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


Comment:

 Yes, I see it. TBH, I don't think a change here is worth the complexity.
 It's pretty niche and you can easily subclass `LocaleMiddleware` to skip
 the `process_response` redirect, by setting an attribute on the response
 in your `HostDomainMiddleware` and checking for it there.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32005#comment:4>
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/064.4bfe38750d278e2bd79e2d35309e2dfe%40djangoproject.com.

Reply via email to