rewriting URLs from foo.example.com/hello to example.com/foo/hello

2013-08-17 Thread Chris Curvey
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

Re: rewriting urls

2006-08-13 Thread Malcolm Tredinnick
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

Re: rewriting urls

2006-08-13 Thread Matt McDonald
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

Re: rewriting urls

2006-08-13 Thread Ivan Sagalaev
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 --~--~-~--~~~---~--~--

rewriting urls

2006-08-12 Thread a
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