Hi, On Thu, Jan 28, 2010 at 8:54 AM, Brett Thomas <brettptho...@gmail.com> wrote: > Most of the URLConf examples I run across use a trailing slash on all URLs: > www.example.com/profile/ > > I'm not sure why, but I don't like this. I think it looks nicer without: > www.example.com/profile
I believe that it is just a matter of personal preference: some people like to always have a slash appended (or never appended) for consistency. I prefer to append a slash when the page is some kind of category, but leave it out when it is a "leaf node". (I noticed that this is what the W3C website does.) > Are there any performance or security reasons to use the trailing slash in > Django? Seems like there could be some quirk with regular expressions that > I'm not thinking of... I do not know about performance, but I doubt there is a security issue, otherwise it would not have made sense to make the APPEND_SLASH setting behave the way it does, i.e., a slash is not appended if the initial URL (without a trailing slash) can be found in the URLconf. Regards, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.