('^/?$', 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
>
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'
2 matches
Mail list logo