On Tue, 2009-03-31 at 15:36 -0700, Bill Konrad wrote: > Ivan, > > Thanks for the quick feedback. What I meant by predictable (and maybe > it's the wrong word in this case) is that when assigning a URI to a > resource, a convention is followed, not that the user can "predict" > the URI itself.
It's entirely up to the developer as to which pattern to follow. It's not something the software can help with (although it's already encouraged, since we use reg-exps to parse the URIs). For example, there are very valid use-cases, when including a locale specifier in a URL for putting it either at the front or the end of the URL (e.g. /de/foo/blah vs /foo/blah/de). Both are valid and good practice in different cases. Even within the same website, both styles might be appropriate (it's not going to be common, but I can think of some cases). There's no way for a set of libraries like Django to provide more than a way to parse out useful bits of URLs for situations like that (and locale parsing, particularly in the leading-component case, is one of the use-cases for some of the URL resolver modifications we'll eventually need). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---