In the head of my django template I currently have:

```
<script>
   $.get('get_students/', function (dict) {
        alert(dict)
   })
</script>

```

This alerts me of a json dictionary corresponding to dict, which comes from the following django view:

```
def get_students(request):
    students = Student.objects.all()

    students_json = serializers.serialize('json', students)

    return HttpResponse(json.dumps(students_json), content_type='application/json')

```

Is it possible to "escape" dict from the script tag into the normal Django template so that I can iterate over it with something like:

```
{% for d in dict%}
    <p>d.username</p>
{% endfor %}

```

If there is a more sensible way of doing this then please recommend it to me, I am still learning. Please note that I am working inside a component from which I have to call the view, which is why I am using js get.

Thanks!