I agree with James^2

I do find the appended slash to be a little bit distracting when
referring to a single item. However, for practical purposes I use the
always append approach because I do feel that it is less ambiguous.

Is the slash on a single item distracting enough to warrant a
middleware or decorator that will allow you to pick? It is easy
enough, so I will probably add a snippet to James Bennett Django
snippets site.

Cheers,
Stephen


On Mar 6, 10:17 am, "James Stembridge" <[EMAIL PROTECTED]> wrote:
> Hi Filipe,
>
> On Mar 6, 2:53 pm, "Filipe Correia" <[EMAIL PROTECTED]> wrote:
>
> >http://somedomain.org/people/12
> >http://somedomain.org/people/12/belongings/
>
> If you think of the mapping of these URLs to files (I know there
> aren't actually any files involved, but it's a useful analogy) then
> what is "12"? To me it looks like a file in the first URL and a
> directory in the second.
>
> Personally I prefer the "always append a slash" approach as it seems
> less ambiguous.
>
> Hope that's at least vaguely useful,
> James.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to