#27874: URL namespacing warning (urls.W005) does not consider nested URL 
namespaces
-----------------------------------------+------------------------
               Reporter:  Chris Lamb     |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  1.11
               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 URL namespacing warning (urls.W005) does not consider nested URL
 namespaces. For example, if your root namespace includes two different
 urlconfs via namespace="foo" and namespace="bar" but each of these
 urlconfs includes another distinct urlconf but with the same namespace
 argument (eg. namespace="baz"), then you get:

     (urls.W005) URL namespace 'baz' isn't unique. You may not be able to
 reverse all URLs in this namespace

 This doesn't seem right as "foo:baz:view-a"  and "bar:baz:view-b" are
 entirely independent.

 I am seeing this a bit as I typically separate the user and admin parts of
 an app using nested apps and simply use "admin" as the "baz" in the above
 examples to avoid DRY in the fully-qualified urls.

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

Reply via email to