from django.template import loader
from my_project.snippets.template import render_block_to_string

def ajax_view(request):
    context = Context({'items': list(range(100))})
Rendering JSON objects using a Django template after an Ajax call