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
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
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
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
4 matches
Mail list logo