title: How to integrate offline folium map onto django using maptiler server?
body: <p>I am new to Django and I have installed mapTiler server on my mac to use it as as map server.  I have a django app that has an embedded folium map and I want to host my data locally (offline) through the application:
  After getting the information from the server [mapTiler server interface][1], I have put this part of code in views.py</p>
  <pre><code>tilesServer = &quot;http://localhost:3650/api/tiles/2017-07-03_illinois_chicago/{z}/{x}/{y}.png&quot;
  m = folium.Map(location=[41.85, -87.68], zoom_start=10,  tiles=tilesServer,attr=&quot;&lt;a href=\&quot;http://www.openmaptiles.org/\&quot; target=\&quot;_blank\&quot;&gt;&amp;copy; OpenMapTiles&lt;/a&gt; &lt;a href=\&quot;http://www.openstreetmap.org/about/\&quot; target=\&quot;_blank\&quot;&gt;&amp;copy; OpenStreetMap contributors&lt;/a&gt;&quot;)
  m.add_child(fullscreen)
  </code></pre>
  <p>and Then I called it in my template with <code>{{my_map|safe}}</code></p>
  <p>the map doesn't load and it displays blank!!! As you can see on this picture [Heatmap][2] where the heatmap and the clusters are shown but not the tiles.</p>
  <p>Can some help or guide me ?
  [1]: <a href="https://i.stack.imgur.com/9eRWH.png" rel="nofollow noreferrer">https://i.stack.imgur.com/9eRWH.png</a>
  [2]: <a href="https://i.stack.imgur.com/P0Sp4.png" rel="nofollow noreferrer">https://i.stack.imgur.com/P0Sp4.png</a></p>