#26295: LocaleMiddleware.is_language_prefix_patterns_used should be cached per
urlconf.
---------------------------------------+------------------------
               Reporter:  charettes    |          Owner:  nobody
                   Type:  Bug          |         Status:  new
              Component:  Core (URLs)  |        Version:  master
               Severity:  Normal       |       Keywords:
           Triage Stage:  Unreviewed   |      Has patch:  0
    Needs documentation:  0            |    Needs tests:  0
Patch needs improvement:  0            |  Easy pickings:  0
                  UI/UX:  0            |
---------------------------------------+------------------------
 The actual behavior prevents `i18n_patterns` from being used by a
 `urlconf` different from the one defined by `ROOT_URLCONF`.

 The `request.urlconf` attribute should be taken into account when
 determining whether or not `i18n_patterns` is used.

 For example, if you were use [https://pypi.python.org/pypi/django-hosts
 django-hosts] to map hostnames to different set of `urlconf`s you couldn't
 have some using `i18n_patterns` and some not.

 I looked at
 
[https://github.com/django/djangoproject.com/blob/65d0e7a58b8923039247214d355d6ff90c2e0817/docs/urls.py
 docs.djangoproject.com urlconf] and figured out `i18n_patterns` might not
 have been used for this exact reason.

--
Ticket URL: <https://code.djangoproject.com/ticket/26295>
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/052.d8181f367ffc71c122b0151f65ac66f7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to