Is there any possibility to find the user’s location in django. I mean is there any way to get the latitude and longitude and then the location.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t Believe Django can do that directly, what you can do with Django is request the IP of the user, and the using a free webservice from outside, request the latitude and longitude and then the location
for example… easy python code:
By the way api.hostip.info work well if the user is in the USA. Outside not so well… but you get the idea.