The idea is probably in the following. when somebody (may be not Django, but your browser) sees that the last part of the URL does not have dots, it understands that it's the "directory", so the trailing slash should be added (like in the ancient times when URLs really represented files and directories)/ But when it sees the dot in the last part, it understands, that it's a "file with extension", so the trailing slash is incorrect to be put.
On Jul 13, 1:06 pm, Dids <didierblanch...@gmail.com> wrote: > It is working. > > When I was creating a link to a page, I was not adding the tailling > '/' explicitely. It seems Django did it for me. > But for some reason, if there was a dot in the url, that trailling '/' > was not added ... no idea why. > > Anyway, explicitly adding the '/' does the job and is probably better > anyway. > > Thanks for your help. > > Regards, > Dids, > > On Jul 10, 10:20 pm, Aaron Maxwell <a...@hilomath.com> wrote: > > > On Thursday 09 July 2009 05:47:48 am Dids wrote: > > > > > Why not to add dots to your regexp? For example, [\w\d\-\.]+ ? > > > > I guess my question should have been: How come \. doesn't appear to be > > > matched in url.py? > > > That's the problem, it doesn't work. > > > It should. Are you using raw strings? > > > Post the whole urlpattern here, including the failed regexp, so we can give > > more specific feedback. > > > -- > > Aaron Maxwell > > Hilomath - Mobile Web Developmenthttp://hilomath.com/ > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---