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
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
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
> 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
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
5 matches
Mail list logo