Hey all,
I have a django project going where we're going to be adding a bunch of
small, independent sites. So I figured I would have one Django project to
contain everything, then a separate app for each site, and just let folks
to www.example.com/foo/hello, www.example.com/bar/goodbye, etc
B
On Sun, 2006-08-13 at 05:59 +, a wrote:
> http://localhost/todo
>
> i want to rewrite this automatically as
>
> http://localhost/todo/
>
> is there a easy way to do this
See
http://www.djangoproject.com/documentation/middleware/#django-middleware-common-commonmiddleware
Regards,
Malcolm
And in a more generic sense the APPEND_SLASH setting of the
CommonMiddleware may be what you are looking for.
http://www.djangoproject.com/documentation/middleware/#django-
middleware-common-commonmiddleware
On 13/08/2006, at 5:17 PM, Ivan Sagalaev wrote:
>
> a wrote:
>> http://localhost/tod
a wrote:
> http://localhost/todo
>
> i want to rewrite this automatically as
>
> http://localhost/todo/
>
> is there a easy way to do this
Yep.
http://www.djangoproject.com/documentation/generic_views/#django-views-generic-simple-redirect-to
--~--~-~--~~~---~--~--
http://localhost/todo
i want to rewrite this automatically as
http://localhost/todo/
is there a easy way to do this
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gro
5 matches
Mail list logo