I\'m trying to pass a Query Set from Django to a template with javascript.
I\'ve tried different approaches to solve this:
1. Normal Approach - Javas
Consolidated answer (my env: Django 2.0)
In views.py
import json data= [] // fil the list context['mydata'] = json.dumps({'data':data})
In template