[Django]-Accessing mobile browser location data in Django

4👍

Getting browser geolocation is totally a client side stuff, Django is irrelevant in this case.

You need to get user’s geolocation in browser via javascript(), and send it to the Django web server. This a tutorial from Mozilla Developer Network about using the geolocation API.

However after getting the geodata, GeoDjango can help you store and query the geodata easily.

GeoDjango is a official contrib module for Django that turns Django into a world-class geographic Web framework.

Leave a comment