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

Поделиться
HTML-код
  • Опубликовано: 22 сен 2024

Комментарии • 60

  • @Davidkiania
    @Davidkiania Год назад +8

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

  • @rangabharath4253
    @rangabharath4253 Год назад +3

    awesome as always 🙂

  • @kira_filmsa
    @kira_filmsa 10 месяцев назад +1

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

  • @fernandtape9363
    @fernandtape9363 Год назад +3

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

  • @IbrahimFox1994
    @IbrahimFox1994 Год назад +2

    very useful, thank you!

  • @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?

  • @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!

  • @donbalongi
    @donbalongi Год назад

    thank you bro!!, regards from Chile

    • @bugbytes3923
      @bugbytes3923  Год назад +1

      Thank you and greetings from Scotland!

  • @kostas6915
    @kostas6915 Год назад

    EXCELLENT video!!! well done!

  • @danfan4707
    @danfan4707 10 месяцев назад

    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.

  • @UbaidMalik-gd8vb
    @UbaidMalik-gd8vb 9 месяцев назад +1

    thnak you so much. you made my day.

    • @bugbytes3923
      @bugbytes3923  9 месяцев назад

      Thank you!

    • @UbaidMalik-gd8vb
      @UbaidMalik-gd8vb 9 месяцев назад

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

  • @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?

  • @aashayamballi
    @aashayamballi Год назад +1

    Thank you

  • @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 👍

  • @rick_er2481
    @rick_er2481 Год назад +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.

    • @rick_er2481
      @rick_er2481 Год назад

      @@bugbytes3923 awesome 👌

    • @rick_er2481
      @rick_er2481 Год назад

      @@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

  • @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.

  • @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.

  • @harunayakubu3702
    @harunayakubu3702 Год назад +1

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

  • @seyedhamidsaffari
    @seyedhamidsaffari Год назад

    Thanks a lottttttttttttttttttttttttt

    • @bugbytes3923
      @bugbytes3923  Год назад +1

      You're welcome - thank you for watching!

  • @MichaelWelford-s8j
    @MichaelWelford-s8j Месяц назад

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

  • @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.

  • @q0sul3sul3
    @q0sul3sul3 Год назад

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

  • @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!

  • @godwinngwena743
    @godwinngwena743 Год назад

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

  • @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.

  • @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

  • @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?

  • @frameff9073
    @frameff9073 Год назад +1

    thank you