How to pass an array in Django to a template and use it with JavaScript

Try using {{ array1|safe }} and see if that makes any difference.

Leave a Comment