Re: Optional trailing slash in App URLs

2009-09-29 Thread sunn
('^/?$', views.index), # in app blog urls.py On Sep 29, 1:59 am, Nuno Machado wrote: > Hello all, > > I really enjoy the default Django behaviour of handling URL trailing > slashes. If one have: > > (r'^contact', views.contact), > > It doesn't matter if someone visits mywebsite.com/contact OR >

Optional trailing slash in App URLs

2009-09-28 Thread Nuno Machado
Hello all, I really enjoy the default Django behaviour of handling URL trailing slashes. If one have: (r'^contact', views.contact), It doesn't matter if someone visits mywebsite.com/contact OR mywebsite.com/contact/. It'll work anyway! The problem is when including app urls, for instance: (r'