#27874 closed Bug (fixed)
URL namespacing warning (urls.W005) does not consider nested URL namespaces
Description ¶
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.
Change History (5)
comment:1 by , 8 years ago
Component: | Uncategorized → Core (System checks) |
---|---|
Severity: | Normal → Release blocker |
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Bug |
comment:2 by , 8 years ago
Has patch: | set |
---|
PR
(No tests yet.)