Re: parsing urls with dot

2009-07-14 Thread Eugene Mirotin
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 direct

Re: parsing urls with dot

2009-07-13 Thread Dids
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

Re: parsing urls with dot

2009-07-10 Thread Aaron Maxwell
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 t

Re: parsing urls with dot

2009-07-09 Thread Dids
> Why not to add dots to your regexp? For example, [\w\d\-\.]+ ? That's the problem, it doesn't work. I guess my question should have been: How come \. doesn't appear to be matched in url.py? --~--~-~--~~~---~--~~ You received this message because you are subs

Re: parsing urls with dot

2009-07-09 Thread Viktor Semykin
Why not to add dots to your regexp? For example, [\w\d\-\.]+ ? On Jul 9, 3:36 pm, Dids wrote: > Hi, > > I'm struggling to get the regex right in my urls.py file to match a > url with a dot inside it. (think ip address). > > for exmaple : >          http://servername/Url.With.Dot > > I'm not even