☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes
⭐Top resource to learn Python - https://datacamp.pxf.io/kOjKkV ⭐
In this video, we'll look at how to fetch a user's location using the browser Geolocation API, and save that data to the database with Django. We'll also look at how to setup the code to work with GeoDjango Point objects at the end of the video.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro to Geolocation API
03:12 Integration Geolocation API with Django
07:04 Sending AJAX request with user location
13:16 Displaying location data in Django template
15:53 GeoDjango approach
18:22 Overview of code
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Geolocation API: https://developer.mozilla.org/en-US/d...
GeoDjango models: https://docs.djangoproject.com/en/5.1...
PostGIS: https://postgis.net/
#python #django #webdevelopment #geolocation