Saturday, April 28, 2012

Re: URL resolution in a Django template

On Sat, Apr 28, 2012 at 3:04 PM, LJ <ljayadams@gmail.com> wrote:
> In other words, if I have two methods with the same name, but each in
> a different directory, how would Django know which method to call?

By "method" here I think you are meaning "url pattern" (specifically,
get_required_meeting_participants in your example snippet). The answer
is Django would not know which one to call if you have named two
different url patterns with the same name. This case is documented to
be "undefined behavior", see the note under:
https://docs.djangoproject.com/en/1.4/topics/http/urls/#id2

Karen
--
http://tracey.org/kmt/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment