I'm building an app with django ,which is going display a map of the top voted items.
I'm not an experienced web developed and i wonder where and when and where should build them map. (this line for example --> )
map_osm.create_map(path='osm.html')
Right now i placed in my views.py, and it's building the map each time a user view it, the question is - wouldn't it create too much overhead computation for the server?
I thought about updating it aslo every x votes,or keep a model that will manage it.
what is the best practice in this kind of situation?
Folium is a powerful Python library that helps you create several types of Leaflet maps. By default, Folium creates a map in a separate HTML file. Since Folium results are interactive, this library is very useful for dashboard building. You can also create inline Jupyter maps in Folium.
Amit. As for folium and building maps for user, yes it could make hard work for server, when a lot of users want to compute. There are solutions for it:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With