named urls should begin with a unique common prefix
Bug #996640 reported by
Richard Wackerbarth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Postorius |
Confirmed
|
Undecided
|
pjoshi |
Bug Description
By Django common practice, in most cases, URL names should be distinct within a flat namespace.
This avoids naming conflicts and leaves the Django Namespace mechanism available for other uses.
I recommend starting each URL name with "mm_", rather than "domain_index" use "mm_domain_index", etc.
To post a comment you must log in.
This should clearly go into the next release, so we avoid any url pattern collisions with other apps.
However, I tend to think that the Django namespace mechanism for view names might be the better solution. We cannot rule out that someone else might use the 'mm_' prefix for view_names, but Django's namespace mechanism can.
Why is it not a good idea to use the Django mechanism?