Skip to content

Commit

Permalink
Adding variables in the template for MAPBOX TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
frasanz committed Oct 21, 2024
1 parent bf6e075 commit 58b7cb0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/templates/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
{% bootstrap_javascript %}
<link rel="stylesheet" href="{% static 'frontend/css/styles.css' %}" />
<script src="{% static 'frontend/js/map.js' %}"></script>
<style>

</style>

<script>
// Define the variables dynamically in the HTML template
window.MAPBOX_ACCESS_TOKEN = "{{ MAPBOX_ACCESS_TOKEN }}";
window.csrfToken = "{{ csrf_token }}";
</script>


</head>
Expand Down

0 comments on commit 58b7cb0

Please sign in to comment.