#36796: URL resolution breaks if route defined with lazy string and uses an 
include
------------------------------------+------------------------------------
     Reporter:  Andrea Angelini     |                    Owner:  (none)
         Type:  Bug                 |                   Status:  new
    Component:  Core (URLs)         |                  Version:  6.0
     Severity:  Release blocker     |               Resolution:
     Keywords:  gettext_lazy, lazy  |             Triage Stage:  Accepted
    Has patch:  0                   |      Needs documentation:  0
  Needs tests:  0                   |  Patch needs improvement:  0
Easy pickings:  0                   |                    UI/UX:  0
------------------------------------+------------------------------------
Changes (by Jacob Walls):

 * cc: Jake Howard (added)
 * keywords:   => gettext_lazy, lazy
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted
 * summary:  gettext_lazy and url patterns =>
     URL resolution breaks if route defined with lazy string and uses an
     include

Comment:

 Thanks, replicated like this (traceback given in forum post):

 {{{#!py
 from django.urls import path, include
 from django.utils.translation import gettext_lazy as _

 urlpatterns = [
     path(_(''), include("django.conf.urls.i18n"), name='index'),
 ]
 }}}
 It's documented that `route` can take a lazy string.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36796#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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019b131e14ad-bce2c104-a87a-4fcb-86ac-b585f821e865-000000%40eu-central-1.amazonses.com.

Reply via email to