Is there a way to improve the way I open my gmap on multiple pages?
{% block extra_js %}
<script src="{%static 'js/map.js' %}" type="text/javascript"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY_HERE&callback=initMap"async defer></script>
{% endblock %}
Dealing with expired keys can be frustrating. I wonder if there's a better approach than manually updating the key in every HTML file. Maybe creating a global variable to store the key could be a solution? Any recommendations?