Django & Folium - Displaying Maps of Database Data in Django Apps

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 60

  • @Davidkiania
    @Davidkiania Рік тому +9

    This is amazing saved me weeks of work. Thank you 👏👏

  • @fernandtape9363
    @fernandtape9363 Рік тому +4

    Great tutorial as always. Thanks for the effort.
    We are still waiting for the project about django and htmx.

  • @kira_filmsa
    @kira_filmsa Рік тому +1

    от души, как раз то что нужно было для курсача)

  • @rangabharath4253
    @rangabharath4253 Рік тому +3

    awesome as always 🙂

  • @danfan4707
    @danfan4707 Рік тому

    Excellent video… there are a lot of interesting JS libraries out there with neat Django packages 😀 I use OSM on my mobile phone to track our walks, and can display them on my own Django site: you just place the route in an directly from OSM but you have to specify a height and width so it’s not very responsive. It would be great to learn how to plot an OSM route on a map with Folium.

  • @IbrahimFox1994
    @IbrahimFox1994 Рік тому +2

    very useful, thank you!

  • @kostas6915
    @kostas6915 Рік тому

    EXCELLENT video!!! well done!

  • @donbalongi
    @donbalongi Рік тому

    thank you bro!!, regards from Chile

    • @bugbytes3923
      @bugbytes3923  Рік тому +1

      Thank you and greetings from Scotland!

  • @UbaidMalik-gd8vb
    @UbaidMalik-gd8vb 11 місяців тому +1

    thnak you so much. you made my day.

    • @bugbytes3923
      @bugbytes3923  11 місяців тому

      Thank you!

    • @UbaidMalik-gd8vb
      @UbaidMalik-gd8vb 11 місяців тому

      @@bugbytes3923 can you guide me how can i use pulsing effect on Marker

  • @dymastro788
    @dymastro788 Рік тому +2

    Great content, less javascript is an outcome for me :) more advanced mapping would be awesome!

    • @bugbytes3923
      @bugbytes3923  Рік тому +1

      Thank you - I'll look into more of this type of stuff, definitely.

    • @dymastro788
      @dymastro788 Рік тому

      @@bugbytes3923 awesome 👌

    • @dymastro788
      @dymastro788 Рік тому

      @@bugbytes3923 Quick question (if you have time to answer ofcourse) you are talking about 'static maps' I assume this is because we render the html + javascript in the view. Can we also make a 'dynamic map'? So change some variables on the page and the results are shown live in de map? (without reloading the page) I've done this by just using only Javascript. Is this also possible somehow with Folium? Hope my question is clear, Thank you

  • @stricherz13
    @stricherz13 Рік тому +3

    Excellent video! Could you do a follow up that uses forms that would allow users to query the EV charging dataset? Possibly using htmx, folium, and Django.

    • @bugbytes3923
      @bugbytes3923  Рік тому +1

      Thank you! Interesting suggestion, I'll look into it - thanks!

  • @mizzlehd8742
    @mizzlehd8742 Рік тому +2

    Hey, is it possible you could make a video on how to effectively use frameworks like bootstrap for making quick and nice frontends?

  • @arunima2916
    @arunima2916 Рік тому +2

    Great!! How a user can set a route and get the charging stations in that route? Thanks indeed for the tutorial.

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Thank you! Interesting question. I'll do a follow up on this at some point later, but it's a bit more complicated to draw a route.
      However, there's a nice Python package called "osmnx" that can help with this and works with Folium. I'll look into making a video on this in the future.

  • @isaacsamuel1689
    @isaacsamuel1689 Рік тому +1

    Thank you very much for this great presentation, you saved me a lot of time.
    Please, how can I get a list of coordinates in a country of user's IP address. I want to be able to let user search for their preferred location base on their IP address for their country. Thanks

  • @mahmoudramadan6581
    @mahmoudramadan6581 Рік тому +1

    Great 👍

  • @harunayakubu3702
    @harunayakubu3702 Рік тому +1

    Thanks a lot.
    Kindly help with Django dynamic forms with HTMX

  • @zijiezhang6828
    @zijiezhang6828 Рік тому +1

    Great tutorial, thank you so much! Is it possible to read the data directly from database for example mysql, or does it has to be stored in csv form?

  • @seyedhamidsaffari
    @seyedhamidsaffari Рік тому

    Thanks a lottttttttttttttttttttttttt

    • @bugbytes3923
      @bugbytes3923  Рік тому +1

      You're welcome - thank you for watching!

  • @vivaldi-qo7xj
    @vivaldi-qo7xj Рік тому +1

    useful. thnx

  • @merickk02
    @merickk02 Рік тому

    Do you have anything with django, folium, using the Draw to define selections and then being able to save the sections to a db and load them again and edit? Love your videos, they have been a big help.

  • @hasibulhasansiju
    @hasibulhasansiju Рік тому +1

    Please do more map videos

  • @fernandtape9363
    @fernandtape9363 Рік тому +1

    Hi, I was wondering if it was possible to conditionally output differents icons based on a certain condition.
    Suppose we have different kind of charging station and we want to output differents icons for each types?

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Hey - great question! Yes, you can indeed change the icon for your markers using Leaflet. The library's "L" object has an "Icon()" method to create an icon, and you can point to any source image you want (either online or on your server).
      You can then attach this icon when calling the L.marker() function.
      So you can imagine creating 2 or more icons, and depending on some condition, attaching the correct one as the marker.
      This page has more info: leafletjs.com/examples/custom-icons/

    • @fernandtape9363
      @fernandtape9363 Рік тому

      @@bugbytes3923 thank you very much. Is it possible with folium too?

    • @bugbytes3923
      @bugbytes3923  Рік тому

      @@fernandtape9363 This kind of thing is more difficult with Folium - if you need lots of dynamic behaviour on a webpage, you're better going with Leaflet.

  • @godwinngwena743
    @godwinngwena743 Рік тому

    hie, I'm getting this error when trying to run server AttributeError: 'Marker' object has no attribute 'dd_to

  • @frameff9073
    @frameff9073 Рік тому +1

    thank you

  • @MichaelWelford-s8j
    @MichaelWelford-s8j 4 місяці тому

    Has anyone figured out how to make a marker have a link to goes to another Django template url?

  • @israelkuassi3504
    @israelkuassi3504 Рік тому

    EXCELLENT BUT WHY YOU DONT USE PACK VARIABLES APPROCH ON LINES 15 AND 16 FOR REDUCING COMPLEXITY OF EXECUTION ??? FOR EXAMPLE DATA=[(STATION.LATITUDE, STATION.LONGITUDE) FOR STATION IN STATIONS]. BUT IS JUST A QUESTION I CAN DO WRONG APPROCH BUT I NEED EXPLANTION FOR MORE COMPREHENSION. THANKS AND I LIKE SO MUCH ALL VIDEOS YOU DO TO SHARE ALL NEW THINS ABOUT DJANGO.

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Thank you - actually, you are correct, that could've been done in one line and would've been a better approach!

  • @willdurant141
    @willdurant141 Рік тому

    Is there a way for a user to temporarily add a marker, either by getting the coordinates by searching an address, or by specifying the coordinates themselves?

    • @bugbytes3923
      @bugbytes3923  Рік тому +2

      It's possible to add markers this way, for sure. I can do a follow-up on this, but off the top of my head, there's a few ways it could be done, some of which I'll list below:
      1. User enters address/location and sends to the server - the server geocodes and returns the coordinates for the marker which can then be placed on the map.
      2. If a user specifies coordinates, these can be directly added to the map using JavaScript.
      3. We can also add markers to the map when a user clicks an area of the map, using JavaScript and the 'click' event.

    • @willdurant141
      @willdurant141 Рік тому +1

      @@bugbytes3923 makes sense

  • @seandiamond7983
    @seandiamond7983 Рік тому

    I spent 2 days getting Geodjango dependancies installed into my Django cookiecutter project and Docker. What a headache. I thought you needed gdal and leaflet and postgis.

  • @q0sul3sul3
    @q0sul3sul3 Рік тому

    what if the station is up to 3000, it will be slow...

  • @Septumsempra8818
    @Septumsempra8818 Рік тому

    How do we contact BugBytes? I built a business using your htmx playlist and i just got funding. Maybe you wanna see.

    • @bugbytes3923
      @bugbytes3923  Рік тому

      Sounds cool, nice one!
      You can contact here: bugbytes.io/contact/

    • @skyhappy
      @skyhappy Рік тому

      What's the business about? And who did you get funding from and how'd you convince them?

  • @aashayamballi
    @aashayamballi Рік тому +1

    Thank you