#14259: URL dispatcher does not reject duplicate URL names
-------------------------------------+--------------------------------------
Reporter: tobias | Owner: nobody
Status: closed | Milestone: 1.3
Component: Core framework | Version: 1.2
Resolution: wontfix | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Changes (by SmileyChris):
* status: new => closed
* resolution: => wontfix
Comment:
Having duplicate url names is fine in cases where you use different
arguments (and it resolves them correctly based on the arguments passed).
For the case where a named argument is overriding an existing name (with
exactly the same arguments), this is a case already documented to "not
do":
>When you name your URL patterns, make sure you use names that are
unlikely to clash with any other application's choice of names. If you
call your URL pattern comment, and another application does the same
thing, there's no guarantee which URL will be inserted into your template
when you use this name.
--
Ticket URL: <http://code.djangoproject.com/ticket/14259#comment:2>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.