Hi all. I have problem with managing urls. I manage international site
which works with diffrent adres e.g. www.example.com, www.example.uk,
www.example.de. I want redirect any user which enter to www.example.uk
to www.example.com/uk/. So I can set redirect on www.example.uk but I
don't know why I have to sets url on my main site www.example.com which
work on django. The views method are common for for any domains, so
e.g. www.example.com/uk/index and www.example.com/de/index is the
same. I figure out something like this: part of urls.py
(r'^(\w{2})/$', 'views.index'),
(r'^(\w{2})/search/$', 'views.search'),
Is there any better way to do something like this?
And how to capture the domain parametr .eg. /uk/ to save to the
session? From I read the manual I must write a Middleware to do
something, but I'm not sure.
Any tip or help?
Thanks
Gregor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---