Possible to do location detection?

2010-08-25 Thread Andy
I'd like to detect the location of each user and then set the default language and location for him accordingly. The homepage would also be tailored to each location (country and city). Can anyone share information on how to do that with Django? -- You received this message because you are subsc

Re: Possible to do location detection?

2010-08-25 Thread ringemup
Unless most of your users will be on location-enabled mobile devices, automatic location detection is usually IP-based, so you'd need to find either a database or a service with an API to do lookups. On Aug 25, 3:37 am, Andy wrote: > I'd like to detect the location of each user and then set the d

Re: Possible to do location detection?

2010-08-25 Thread davidchambers
It's also possible to inspect `request.META['HTTP_ACCEPT_LANGUAGE']`, although while building an English/Chinese site recently I found this somewhat unreliable. In the end I decided to use it as a default so that at least some of the Chinese visitors will see the content in Chinese right away; thos

Re: Possible to do location detection?

2010-08-25 Thread Nabil Servais
Hello, Le 25/08/2010 09:37, Andy a écrit : I'd like to detect the location of each user and then set the default language and location for him accordingly. The homepage would also be tailored to each location (country and city). Can anyone share information on how to do that with Django? You