On Sunday 14 June 2009 06:12:32 donquixote wrote: > Nice (i): > http://mysite.org/members/emil > http://mysite.org/members/emil/contact > > Not nice (ii): > http://mysite.org/members/emil/ > http://mysite.org/members/emil/contact/
You have some problems: 1) All contrib apps, and many others, put a slash at end of the URL conf regexes. This means that without APPEND_SLASH = True, you will get 404s for e.g. /admin/foo which is not very friendly behaviour. 2) Having more than one convention is not going to be popular - especially as django apps are often designed to be pluggable. Inconsistency here would be a pain in neck 3) Changing these existing apps to make the trailing slash optional would be a *very* big task, especially when you use relative URLs like href="../../somewhere/else/". If the current URL doesn't have a trailing slash, then those relative URLs will be broken. In theory, this should be fixed by use URL reversing correctly, but there isn't even a fully capable solution in trunk yet (I believe the current status is some design decisions need to be made with regards to the case where you have multiple instances of the same app, I might be wrong). Anyway, there are *many* instances of relative URLs still in the Django code base. And I think it affects CSS too (which is not so easily addressed as template or Python code). Seeing as some people actually prefer the trailing slash, I think it is fair to say that you are fighting a losing battle. Luke -- "If we could just get everyone to close their eyes and visualise world peace for an hour, imagine how serene and quiet it would be until the looting started" -- Anon Luke Plant || http://lukeplant.me.uk/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---