Forums

google.com redirecting google.co.in in web server

Hello All,

I have django based web app. I have kept TIME_ZONE = 'UTC' but still it is redirecting to google.co.in. How can I prevent to redirect. Below code is totally running in server side. Can I change settings such way that google always check server location not user/client location. Is this possible?

Below is my code: def fnNewsDetails(**params): URL = 'https://www.google.com/#q=rio+tinto&tbm=nws' response = requests.get(URL) return response.content

Sorry, we have no idea how google makes the choice of which server to send you to. You might be able to work out what's going on by looking at the network traffic between the browser and google to see what makes the difference.